diff options
author | vaxerski <[email protected]> | 2023-03-28 17:21:06 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-28 17:21:11 +0100 |
commit | df54ab40ceb6e7f74844e83d3f55739accd349cc (patch) | |
tree | ed5e52035321abe2a95e55c40e2e7be628322336 | |
parent | 6fec5bfbeb80a5b2231af2ac5710a8b9c8bbc08a (diff) | |
download | Hyprland-df54ab40ceb6e7f74844e83d3f55739accd349cc.tar.gz Hyprland-df54ab40ceb6e7f74844e83d3f55739accd349cc.zip |
layer: allow focus on top/overlay surfaces without a window
-rw-r--r-- | src/managers/input/InputManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 5929e7ff..9a257dce 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -360,7 +360,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { unsetCursorImage(); } - if (pFoundLayerSurface && pFoundLayerSurface->layerSurface->current.keyboard_interactive && *PFOLLOWMOUSE != 3 && allowKeyboardRefocus) { + if (pFoundLayerSurface && (pFoundLayerSurface->layerSurface->current.keyboard_interactive || pFoundLayerSurface->layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP) && + *PFOLLOWMOUSE != 3 && allowKeyboardRefocus) { g_pCompositor->focusSurface(foundSurface); } |