steamcompmgr: report input focus as focused app, not necessarily main plane
This commit is contained in:
parent
f7e1cb2e2e
commit
45c801e0ac
1 changed files with 6 additions and 6 deletions
|
@ -1509,10 +1509,15 @@ found:
|
||||||
unsigned long focusedWindow = 0;
|
unsigned long focusedWindow = 0;
|
||||||
unsigned long focusedAppId = 0;
|
unsigned long focusedAppId = 0;
|
||||||
|
|
||||||
|
if ( inputFocus == NULL )
|
||||||
|
{
|
||||||
|
inputFocus = focus;
|
||||||
|
}
|
||||||
|
|
||||||
if ( focus )
|
if ( focus )
|
||||||
{
|
{
|
||||||
focusedWindow = focus->id;
|
focusedWindow = focus->id;
|
||||||
focusedAppId = focus->appID;
|
focusedAppId = inputFocus->appID;
|
||||||
}
|
}
|
||||||
|
|
||||||
XChangeProperty( dpy, root, XInternAtom( dpy, "GAMESCOPE_FOCUSED_WINDOW", False ),
|
XChangeProperty( dpy, root, XInternAtom( dpy, "GAMESCOPE_FOCUSED_WINDOW", False ),
|
||||||
|
@ -1528,11 +1533,6 @@ found:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( inputFocus == NULL )
|
|
||||||
{
|
|
||||||
inputFocus = focus;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( gameFocused )
|
if ( gameFocused )
|
||||||
{
|
{
|
||||||
// Do some searches through game windows to follow transient links if needed
|
// Do some searches through game windows to follow transient links if needed
|
||||||
|
|
Loading…
Reference in a new issue