quit tile window when it is maxied in wayland env

This commit is contained in:
zhang yu 2023-12-27 14:02:19 +08:00 committed by Ben Cooksley
parent b561224ad0
commit cbb95f5649
4 changed files with 4 additions and 1 deletions

View file

@ -269,6 +269,7 @@ void QuickTilingTest::testQuickMaximizing()
// window is now set to maximised
QCOMPARE(maximizeChangedSpy.count(), 1);
QCOMPARE(window->maximizeMode(), MaximizeFull);
QCOMPARE(window->tile(), nullptr);
// go back to quick tile none
QFETCH(QuickTileMode, mode);

View file

@ -1178,7 +1178,7 @@ void Window::setMaximize(bool vertically, bool horizontally)
if (horizontally) {
mode = MaximizeMode(mode | MaximizeHorizontal);
}
setTile(nullptr);
maximize(mode);
}

View file

@ -4663,6 +4663,7 @@ void X11Window::maximize(MaximizeMode mode)
} else {
updateQuickTileMode(QuickTileFlag::None);
}
setTile(nullptr);
info->setState(NET::Max, NET::Max);
break;
}

View file

@ -1551,6 +1551,7 @@ void XdgToplevelWindow::maximize(MaximizeMode mode)
} else {
updateQuickTileMode(QuickTileFlag::None);
}
setTile(nullptr);
} else {
updateQuickTileMode(QuickTileFlag::None);
}