diff options
author | Epilepsy Gatherings <[email protected]> | 2024-03-02 19:18:53 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-03 00:18:53 +0000 |
commit | acf0b536a643bd5c87cd6097f5c94b4041797c15 (patch) | |
tree | 0e72432fa45b654a9d7f3f16d62f1ae0f2f28799 /src/managers/XWaylandManager.cpp | |
parent | 1762e9c6ec0140a35e79b0f4c88cce003b05ced5 (diff) | |
download | Hyprland-acf0b536a643bd5c87cd6097f5c94b4041797c15.tar.gz Hyprland-acf0b536a643bd5c87cd6097f5c94b4041797c15.zip |
xwayland: disable initial focus for xwayland dialogs (#4936)
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
-rw-r--r-- | src/managers/XWaylandManager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 4e01d724..6f49c7f2 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -222,9 +222,7 @@ bool CHyprXWaylandManager::shouldBeFloated(CWindow* pWindow, bool pending) { pWindow->m_uSurface.xwayland->window_type[i] == HYPRATOMS["_NET_WM_WINDOW_TYPE_MENU"]) pWindow->m_bX11ShouldntFocus = true; - if (pWindow->m_uSurface.xwayland->window_type[i] != HYPRATOMS["_NET_WM_WINDOW_TYPE_DIALOG"]) - pWindow->m_bNoInitialFocus = true; - + pWindow->m_bNoInitialFocus = true; return true; } |