Pass arguments to changeMaximize in correct order

Summary:
The first argument in AbstractClient::changeMaximize specifies whether
the maximized state of the client needs to be toggled in horizontal
direction.

Reviewers: #kwin, romangg

Reviewed By: #kwin, romangg

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D22486
icc-effect-5.17.5
Vlad Zagorodniy 2019-07-22 23:28:28 +03:00
parent 394d45d1d7
commit 97dbbfbe2c
1 changed files with 2 additions and 2 deletions

View File

@ -2148,8 +2148,8 @@ void AbstractClient::setMaximize(bool vertically, bool horizontally)
// changeMaximize() flips the state, so change from set->flip
const MaximizeMode oldMode = maximizeMode();
changeMaximize(
oldMode & MaximizeVertical ? !vertically : vertically,
oldMode & MaximizeHorizontal ? !horizontally : horizontally,
oldMode & MaximizeVertical ? !vertically : vertically,
false);
const MaximizeMode newMode = maximizeMode();
if (oldMode != newMode) {
@ -2188,7 +2188,7 @@ private:
static bool changeMaximizeRecursion = false;
void Client::changeMaximize(bool vertical, bool horizontal, bool adjust)
void Client::changeMaximize(bool horizontal, bool vertical, bool adjust)
{
if (changeMaximizeRecursion)
return;