From 42e1584e719596ac4b46fcc6d0fd8f3872aab0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Thu, 14 Jan 2021 12:54:31 +0100 Subject: [PATCH] steamclient: Fake Shift + Tab key release on overlay activation. --- lsteamclient/steamclient_main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c index 0ca40aa6..c4df70fe 100644 --- a/lsteamclient/steamclient_main.c +++ b/lsteamclient/steamclient_main.c @@ -8,6 +8,7 @@ #include "windef.h" #include "winbase.h" #include "winnls.h" +#include "winuser.h" #include "wine/debug.h" #include "wine/library.h" #include "wine/list.h" @@ -564,7 +565,13 @@ bool CDECL Steam_BGetCallback(HSteamPipe pipe, struct winCallbackMsg_t *win_msg, { uint8 activated = *(uint8 *)lin_msg.m_pubParam; TRACE("steam overlay %sactivated, %sabling all X11 events.\n", activated ? "" : "de", activated ? "dis" : "en"); - if (activated) SetEvent(steam_overlay_event); + if (activated) + { + SetEvent(steam_overlay_event); + keybd_event(VK_LSHIFT, 0x2a /* lshift scancode */, KEYEVENTF_KEYUP, 0); + keybd_event(VK_RSHIFT, 0x36 /* rshift scancode */, KEYEVENTF_KEYUP, 0); + keybd_event(VK_TAB, 0x0f /* tab scancode */, KEYEVENTF_KEYUP, 0); + } else ResetEvent(steam_overlay_event); }