xwayland: disable initial focus for xwayland dialogs (#4936)

This commit is contained in:
Epilepsy Gatherings
2024-03-02 19:18:53 -05:00
committed by GitHub
parent 1762e9c6ec
commit acf0b536a6

View File

@@ -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;
}