[wayland] Fix arguments to clientMaximizedStateChanged(bool, bool)
Summary: It should be indicating the current state of horizontal and vertical maximisation not whether it changed or not. Reviewers: #kwin, zzag Reviewed By: #kwin, zzag Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16740
This commit is contained in:
parent
62d334eb61
commit
d2648c6c77
1 changed files with 1 additions and 3 deletions
|
@ -1504,12 +1504,10 @@ void ShellClient::updateMaximizeMode(MaximizeMode maximizeMode)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool horizontalChanged = (maximizeMode & MaximizeHorizontal) != (m_maximizeMode & MaximizeHorizontal);
|
|
||||||
bool verticalChanged = (maximizeMode & MaximizeVertical) != (m_maximizeMode & MaximizeVertical);
|
|
||||||
m_maximizeMode = maximizeMode;
|
m_maximizeMode = maximizeMode;
|
||||||
|
|
||||||
emit clientMaximizedStateChanged(this, m_maximizeMode);
|
emit clientMaximizedStateChanged(this, m_maximizeMode);
|
||||||
emit clientMaximizedStateChanged(this, horizontalChanged, verticalChanged);
|
emit clientMaximizedStateChanged(this, m_maximizeMode & MaximizeHorizontal, m_maximizeMode & MaximizeVertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ShellClient::hasStrut() const
|
bool ShellClient::hasStrut() const
|
||||||
|
|
Loading…
Reference in a new issue