aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-10-02 14:09:23 +0100
committervaxerski <[email protected]>2023-10-02 14:09:23 +0100
commit5ffb1032e171b88dc45e0169159e449989a0fc58 (patch)
tree0b1b53979bb971388a4b296a25e3fac9c1e435b6
parentfc1d7acd9a7e02fabf8091742bd6c613aa764f05 (diff)
downloadHyprland-5ffb1032e171b88dc45e0169159e449989a0fc58.tar.gz
Hyprland-5ffb1032e171b88dc45e0169159e449989a0fc58.zip
events: don't focus new window if spawned behind fullscreen
fixes #3473
-rw-r--r--src/events/Windows.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index f726b224..88ccab22 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -467,6 +467,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
const auto PLSFROMFOCUS = g_pCompositor->getLayerSurfaceFromSurface(g_pCompositor->m_pLastFocus);
if (PLSFROMFOCUS && PLSFROMFOCUS->layerSurface->current.keyboard_interactive)
PWINDOW->m_bNoInitialFocus = true;
+ if (PWORKSPACE->m_bHasFullscreenWindow && !requestsFullscreen)
+ PWINDOW->m_bNoInitialFocus = true;
if (!PWINDOW->m_bNoFocus && !PWINDOW->m_bNoInitialFocus &&
(PWINDOW->m_iX11Type != 2 || (PWINDOW->m_bIsX11 && wlr_xwayland_or_surface_wants_focus(PWINDOW->m_uSurface.xwayland))) && !workspaceSilent &&