mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 15:25:58 +01:00
layout: allow changing float status of fullscreen windows
This commit is contained in:
parent
b8f38dcbd3
commit
981386d2ae
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue