From 981386d2ae6ba8c7c5c0ebb1c9837fccfab9150c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 28 Aug 2023 22:55:52 +0200 Subject: [PATCH] layout: allow changing float status of fullscreen windows --- src/layout/IHyprLayout.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index f5908a90..7ed6dd2e 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -394,11 +394,8 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) { void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { if (pWindow->m_bIsFullscreen) { - Debug::log(LOG, "Rejecting a change float order because window is fullscreen."); - - // restore its' floating mode - pWindow->m_bIsFloating = !pWindow->m_bIsFloating; - return; + Debug::log(LOG, "changeWindowFloatingMode: fullscreen"); + g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL); } pWindow->m_bPinned = false;