diff --git a/src/x11client.cpp b/src/x11client.cpp index b904d35f93..a593639394 100644 --- a/src/x11client.cpp +++ b/src/x11client.cpp @@ -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; } diff --git a/src/xdgshellclient.cpp b/src/xdgshellclient.cpp index f1468284f0..323e43cbc9 100644 --- a/src/xdgshellclient.cpp +++ b/src/xdgshellclient.cpp @@ -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; }