aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/XWaylandManager.cpp
diff options
context:
space:
mode:
authorEpilepsy Gatherings <[email protected]>2024-03-02 19:18:53 -0500
committerGitHub <[email protected]>2024-03-03 00:18:53 +0000
commitacf0b536a643bd5c87cd6097f5c94b4041797c15 (patch)
tree0e72432fa45b654a9d7f3f16d62f1ae0f2f28799 /src/managers/XWaylandManager.cpp
parent1762e9c6ec0140a35e79b0f4c88cce003b05ced5 (diff)
downloadHyprland-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.cpp4
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;
}