From 933ba953a85e6960d773cb3b4cb79c7676bbab6f Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Wed, 7 Oct 2026 06:45:16 -0400 Subject: [PATCH] feat: log the window properties gamescope checks before counting a window as focusable --- .../overlay/usr/local/bin/droiddeck-xwindows | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-xwindows b/tools/linuxfs/overlay/usr/local/bin/droiddeck-xwindows index af06247bb2..a0ed148afb 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-xwindows +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-xwindows @@ -2,7 +2,10 @@ # The top-level windows of one Xwayland server, one line each, for the session log: what gamescope # had to pick focus from. Each line has the window, whether it is mapped, override-redirect, its # geometry, the app id it carries (STEAM_GAME, which gamescope focuses by), its WM_STATE, pid and -# class. Windows that are neither mapped nor tagged with an app id are left out - wine keeps many +# class. Then whatever is set of what else gamescope weighs before it counts a mapped window as +# focusable: an InputOnly class, _NET_WM_WINDOW_OPACITY (0 is never focusable), STEAM_OVERLAY, +# GAMESCOPE_EXTERNAL_OVERLAY, STEAM_INPUT_FOCUS and _NET_WM_STATE (skip taskbar and pager without +# fullscreen is left out of the focusable list the client reads). Windows that are neither mapped nor tagged with an app id are left out - wine keeps many # hidden ones. The rootfs has xprop but no xwininfo, so this speaks the X protocol itself. # # droiddeck-xwindows :1 @@ -65,7 +68,13 @@ class X: def attributes(self, win): r = self.request(struct.pack("