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:
parent
ab72155ce0
commit
3db90edd75
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue