Revert "Send initial focus to X11 type dialog"

This reverts commit efc686423a.

Issues with select dialogs.
This commit is contained in:
vaxerski 2022-12-15 16:47:08 +00:00
parent 702c0a0fbf
commit 95a042691a
1 changed files with 1 additions and 3 deletions

View File

@ -182,9 +182,7 @@ bool CHyprXWaylandManager::shouldBeFloated(CWindow* pWindow) {
if (pWindow->m_uSurface.xwayland->window_type[i] == HYPRATOMS["_NET_WM_WINDOW_TYPE_DROPDOWN_MENU"] || 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;
}