reject drag on fullscreen workspace

This commit is contained in:
vaxerski 2022-06-01 21:13:10 +02:00
parent 4f76d5d8d7
commit b5a100379e

View file

@ -452,6 +452,13 @@ void CHyprDwindleLayout::onBeginDragWindow() {
return;
}
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(DRAGGINGWINDOW->m_iWorkspaceID);
if (PWORKSPACE->m_bHasFullscreenWindow) {
Debug::log(LOG, "Rejecting drag on a fullscreen workspace.");
return;
}
DRAGGINGWINDOW->m_bDraggingTiled = false;
if (!DRAGGINGWINDOW->m_bIsFloating) {