mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-14 05:25:59 +01:00
input: fix kb focus on top layers without interactive flag
This commit is contained in:
parent
dd2372d2e6
commit
4ae784dc53
1 changed files with 2 additions and 1 deletions
|
@ -385,7 +385,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
|||
unsetCursorImage();
|
||||
}
|
||||
|
||||
if (pFoundLayerSurface && (pFoundLayerSurface->layerSurface->current.keyboard_interactive || pFoundLayerSurface->layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP) &&
|
||||
if (pFoundLayerSurface &&
|
||||
(pFoundLayerSurface->layerSurface->current.keyboard_interactive || (pFoundLayerSurface->layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP && !g_pCompositor->m_pLastWindow)) &&
|
||||
FOLLOWMOUSE != 3 && allowKeyboardRefocus) {
|
||||
g_pCompositor->focusSurface(foundSurface);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue