quit tile window when it is maxied in wayland env
This commit is contained in:
parent
b561224ad0
commit
cbb95f5649
4 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -1178,7 +1178,7 @@ void Window::setMaximize(bool vertically, bool horizontally)
|
|||
if (horizontally) {
|
||||
mode = MaximizeMode(mode | MaximizeHorizontal);
|
||||
}
|
||||
setTile(nullptr);
|
||||
|
||||
maximize(mode);
|
||||
}
|
||||
|
||||
|
|
|
@ -4663,6 +4663,7 @@ void X11Window::maximize(MaximizeMode mode)
|
|||
} else {
|
||||
updateQuickTileMode(QuickTileFlag::None);
|
||||
}
|
||||
setTile(nullptr);
|
||||
info->setState(NET::Max, NET::Max);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1551,6 +1551,7 @@ void XdgToplevelWindow::maximize(MaximizeMode mode)
|
|||
} else {
|
||||
updateQuickTileMode(QuickTileFlag::None);
|
||||
}
|
||||
setTile(nullptr);
|
||||
} else {
|
||||
updateQuickTileMode(QuickTileFlag::None);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue