From 45c801e0acdc0a4c8344313ace68c55f430ece4f Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Tue, 29 Jun 2021 19:27:27 -0700 Subject: [PATCH] steamcompmgr: report input focus as focused app, not necessarily main plane --- src/steamcompmgr.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 91e5949..de9a362 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -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