steamcompmgr: report input focus as focused app, not necessarily main plane

This commit is contained in:
Pierre-Loup A. Griffais 2021-06-29 19:27:27 -07:00
parent f7e1cb2e2e
commit 45c801e0ac

View file

@ -1509,10 +1509,15 @@ found:
unsigned long focusedWindow = 0;
unsigned long focusedAppId = 0;
if ( inputFocus == NULL )
{
inputFocus = focus;
}
if ( focus )
{
focusedWindow = focus->id;
focusedAppId = focus->appID;
focusedAppId = inputFocus->appID;
}
XChangeProperty( dpy, root, XInternAtom( dpy, "GAMESCOPE_FOCUSED_WINDOW", False ),
@ -1528,11 +1533,6 @@ found:
return;
}
if ( inputFocus == NULL )
{
inputFocus = focus;
}
if ( gameFocused )
{
// Do some searches through game windows to follow transient links if needed