summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
-rw-r--r--src/layout/IHyprLayout.cpp7
1 files 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;