layout: allow changing float status of fullscreen windows

This commit is contained in:
vaxerski 2023-08-28 22:55:52 +02:00
parent b8f38dcbd3
commit 981386d2ae

View file

@ -394,11 +394,8 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) {
void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) {
if (pWindow->m_bIsFullscreen) { if (pWindow->m_bIsFullscreen) {
Debug::log(LOG, "Rejecting a change float order because window is fullscreen."); Debug::log(LOG, "changeWindowFloatingMode: fullscreen");
g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
// restore its' floating mode
pWindow->m_bIsFloating = !pWindow->m_bIsFloating;
return;
} }
pWindow->m_bPinned = false; pWindow->m_bPinned = false;