mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-25 04:38:28 +00:00
xwayland: allow initial focus to dialogs
This commit is contained in:
@@ -184,7 +184,9 @@ bool CHyprXWaylandManager::shouldBeFloated(CWindow* pWindow) {
|
|||||||
pWindow->m_uSurface.xwayland->window_type[i] == HYPRATOMS["_NET_WM_WINDOW_TYPE_MENU"])
|
pWindow->m_uSurface.xwayland->window_type[i] == HYPRATOMS["_NET_WM_WINDOW_TYPE_MENU"])
|
||||||
pWindow->m_bX11ShouldntFocus = true;
|
pWindow->m_bX11ShouldntFocus = true;
|
||||||
|
|
||||||
pWindow->m_bNoInitialFocus = true;
|
if (pWindow->m_uSurface.xwayland->window_type[i] != HYPRATOMS["_NET_WM_WINDOW_TYPE_DIALOG"])
|
||||||
|
pWindow->m_bNoInitialFocus = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user