diff options
author | vaxerski <[email protected]> | 2023-08-28 22:54:23 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-08-28 22:54:23 +0200 |
commit | b8f38dcbd36813772057b70b7421f52bd403fbac (patch) | |
tree | 5209014757517a7855354c6d2c4fb3aa1e2e9afb | |
parent | df691859fbe0b1acee9fa5c97440b5953b8edb32 (diff) | |
download | Hyprland-b8f38dcbd36813772057b70b7421f52bd403fbac.tar.gz Hyprland-b8f38dcbd36813772057b70b7421f52bd403fbac.zip |
layout: allow drag on fullscreen windows
-rw-r--r-- | src/layout/IHyprLayout.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 92191732..f5908a90 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -179,9 +179,8 @@ void IHyprLayout::onBeginDragWindow() { } if (DRAGGINGWINDOW->m_bIsFullscreen) { - Debug::log(LOG, "Rejecting drag on a fullscreen window."); - g_pInputManager->currentlyDraggedWindow = nullptr; - return; + Debug::log(LOG, "Dragging a fullscreen window"); + g_pCompositor->setWindowFullscreen(DRAGGINGWINDOW, false, FULLSCREEN_FULL); } const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(DRAGGINGWINDOW->m_iWorkspaceID); |