mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-31 11:44:30 +01:00
lsteamclient: HACK: Skip spurious overlay deactivation event.
CW-Bug-Id: #20169
This commit is contained in:
parent
7fd1f62249
commit
8d7d5bb129
1 changed files with 11 additions and 1 deletions
|
|
@ -680,6 +680,7 @@ bool CDECL Steam_BGetCallback(HSteamPipe pipe, struct winCallbackMsg_t *win_msg,
|
|||
if(!load_steamclient())
|
||||
return 0;
|
||||
|
||||
next_event:
|
||||
ret = steamclient_BGetCallback(pipe, &lin_msg, ignored);
|
||||
|
||||
if(ret){
|
||||
|
|
@ -698,7 +699,16 @@ bool CDECL Steam_BGetCallback(HSteamPipe pipe, struct winCallbackMsg_t *win_msg,
|
|||
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);
|
||||
else
|
||||
{
|
||||
if (WaitForSingleObject(steam_overlay_event, 0) == WAIT_TIMEOUT)
|
||||
{
|
||||
FIXME("Spurious steam overlay deactivate event, skipping.\n");
|
||||
steamclient_FreeLastCallback(pipe);
|
||||
goto next_event;
|
||||
}
|
||||
ResetEvent(steam_overlay_event);
|
||||
}
|
||||
}
|
||||
|
||||
switch(win_msg->m_iCallback | (lin_msg.m_cubParam << 16)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue