From 5e7dcd30f8d4de2e21fea7c92e9def8589fba187 Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Sun, 7 Nov 2021 21:00:25 -0800 Subject: [PATCH] steamcompmgr: don't focus random windows If we don't have -e, everything will have a fake gameID to get focus. --- src/steamcompmgr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 91f3bba..aa9d46e 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -1627,6 +1627,7 @@ determine_and_apply_focus(Display *dpy, MouseCursor *cursor) } if ( w->a.map_state == IsViewable && w->a.c_class == InputOutput && w->isOverlay == false && + ( win_has_game_id( w ) || w->isSteam || w->isSteamStreamingClient ) && (w->opacity > TRANSLUCENT || w->isSteamStreamingClient == true ) ) { vecPossibleFocusWindows.push_back( w );