diff --git a/shell_client.cpp b/shell_client.cpp index f0ddf76373..f758e2e7f3 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -1504,12 +1504,10 @@ void ShellClient::updateMaximizeMode(MaximizeMode maximizeMode) return; } - bool horizontalChanged = (maximizeMode & MaximizeHorizontal) != (m_maximizeMode & MaximizeHorizontal); - bool verticalChanged = (maximizeMode & MaximizeVertical) != (m_maximizeMode & MaximizeVertical); m_maximizeMode = maximizeMode; emit clientMaximizedStateChanged(this, m_maximizeMode); - emit clientMaximizedStateChanged(this, horizontalChanged, verticalChanged); + emit clientMaximizedStateChanged(this, m_maximizeMode & MaximizeHorizontal, m_maximizeMode & MaximizeVertical); } bool ShellClient::hasStrut() const