Commit fccbfd86 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

wayland: Simplify borderless maximized window handling

setNoBorder() checks window rules and it doesn't have an immediate
effect on the geometry.
parent b5d2b0fb
Pipeline #127998 passed with stage
in 11 minutes and 51 seconds
......@@ -1674,11 +1674,7 @@ void XdgToplevelClient::changeMaximize(bool horizontal, bool vertical, bool adju
}
if (options->borderlessMaximizedWindows()) {
// triggers a maximize change.
// The next setNoBorder interation will exit since there's no change but the first recursion pullutes the restore geometry
changeMaximizeRecursion = true;
setNoBorder(rules()->checkNoBorder(m_requestedMaximizeMode == MaximizeFull));
changeMaximizeRecursion = false;
setNoBorder(m_requestedMaximizeMode == MaximizeFull);
}
if (quickTileMode() == QuickTileMode(QuickTileFlag::None)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment