do not reject drags on visible windows over fullscreen

This commit is contained in:
vaxerski 2022-12-08 17:45:25 +00:00
parent cba10ba5b7
commit 6e3bd440ba

View file

@ -132,8 +132,8 @@ void IHyprLayout::onBeginDragWindow() {
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(DRAGGINGWINDOW->m_iWorkspaceID); const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(DRAGGINGWINDOW->m_iWorkspaceID);
if (PWORKSPACE->m_bHasFullscreenWindow) { if (PWORKSPACE->m_bHasFullscreenWindow && (!DRAGGINGWINDOW->m_bCreatedOverFullscreen || !DRAGGINGWINDOW->m_bIsFloating)) {
Debug::log(LOG, "Rejecting drag on a fullscreen workspace."); Debug::log(LOG, "Rejecting drag on a fullscreen workspace. (window under fullscreen)");
return; return;
} }