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

Propagate correct maximize mode to decorations

When the maximize mode changes from MaximizeFull to either
MaximizeHorizontal or MaximizeVertical, (max_mode & MaximizeFull) will
evaluate to true because MaximizeFull is defined as bitwise OR between
MaximizeHorizontal and MaximizeVertical.
parent b9b349ca
......@@ -4272,7 +4272,7 @@ void X11Client::changeMaximize(bool horizontal, bool vertical, bool adjust)
emit c->maximizedHorizontallyChanged(max_mode & MaximizeHorizontal);
}
if ((max_mode == MaximizeFull) != (old_mode == MaximizeFull)) {
emit c->maximizedChanged(max_mode & MaximizeFull);
emit c->maximizedChanged(max_mode == MaximizeFull);
}
changeMaximizeRecursion = false;
}
......
......@@ -1633,7 +1633,7 @@ void XdgToplevelClient::changeMaximize(bool horizontal, bool vertical, bool adju
emit c->maximizedHorizontallyChanged(m_requestedMaximizeMode & MaximizeHorizontal);
}
if ((m_requestedMaximizeMode == MaximizeFull) != (oldMode == MaximizeFull)) {
emit c->maximizedChanged(m_requestedMaximizeMode & MaximizeFull);
emit c->maximizedChanged(m_requestedMaximizeMode == MaximizeFull);
}
changeMaximizeRecursion = false;
}
......
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