From 6e3bd440ba170864f7daae0e11a1c37ba24305a4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 8 Dec 2022 17:45:25 +0000 Subject: [PATCH] do not reject drags on visible windows over fullscreen --- src/layout/IHyprLayout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 8cd008a5..d2304971 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -132,8 +132,8 @@ void IHyprLayout::onBeginDragWindow() { const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(DRAGGINGWINDOW->m_iWorkspaceID); - if (PWORKSPACE->m_bHasFullscreenWindow) { - Debug::log(LOG, "Rejecting drag on a fullscreen workspace."); + if (PWORKSPACE->m_bHasFullscreenWindow && (!DRAGGINGWINDOW->m_bCreatedOverFullscreen || !DRAGGINGWINDOW->m_bIsFloating)) { + Debug::log(LOG, "Rejecting drag on a fullscreen workspace. (window under fullscreen)"); return; }