diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-28 22:55:52 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-28 22:55:52 +0200 |
| commit | 981386d2ae6ba8c7c5c0ebb1c9837fccfab9150c (patch) | |
| tree | 59ad2488808ab20bdafb01407b6d77eb6b6f64bc /src/layout/IHyprLayout.cpp | |
| parent | b8f38dcbd36813772057b70b7421f52bd403fbac (diff) | |
layout: allow changing float status of fullscreen windows
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 7 |
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; |
