steamcompmgr: don't allow giving an overlay layer keyboard focus

The main plane app rarely lets it go without making visible trouble.

We can reinstate this feature when we have a way to lie about it.
This commit is contained in:
Pierre-Loup A. Griffais 2021-09-12 23:30:51 -07:00
parent ab72155ce0
commit 3db90edd75

View file

@ -1774,7 +1774,7 @@ found:
xwm_log.debugf( "determine_and_apply_focus inputFocus %lu", inputFocus->id );
}
if ( inputFocus->inputFocusMode == 2 )
if ( inputFocus->inputFocusMode )
keyboardFocusWin = focus;
if ( inputFocus->surface.wlr != nullptr || keyboardFocusWin->surface.wlr != nullptr )
@ -2497,7 +2497,7 @@ handle_wl_surface_id(win *w, long surfaceID)
win *inputFocusWin = find_win( nullptr, currentInputFocusWindow );
Window keyboardFocusWindow = currentInputFocusWindow;
if ( inputFocusWin && inputFocusWin->inputFocusMode == 2 )
if ( inputFocusWin && inputFocusWin->inputFocusMode )
keyboardFocusWindow = currentFocusWindow;
if ( w->id == keyboardFocusWindow )