Revert the change for when to emit the maximizedChanged signal

It broke the maximize window effect.

REVIEW: 110468
This commit is contained in:
Martin Gräßlin 2013-05-10 13:57:23 +02:00
parent 76d96506dc
commit 59690ee625

View file

@ -2096,6 +2096,8 @@ void Client::setMaximize(bool vertically, bool horizontally)
max_mode & MaximizeVertical ? !vertically : vertically, max_mode & MaximizeVertical ? !vertically : vertically,
max_mode & MaximizeHorizontal ? !horizontally : horizontally, max_mode & MaximizeHorizontal ? !horizontally : horizontally,
false); false);
emit clientMaximizedStateChanged(this, max_mode);
emit clientMaximizedStateChanged(this, vertically, horizontally);
} }
@ -2332,8 +2334,6 @@ void Client::changeMaximize(bool vertical, bool horizontal, bool adjust)
syncer.syncNow(); // important because of window rule updates! syncer.syncNow(); // important because of window rule updates!
updateAllowedActions(); updateAllowedActions();
emit clientMaximizedStateChanged(this, max_mode);
emit clientMaximizedStateChanged(this, vertical, horizontal);
updateWindowRules(Rules::MaximizeVert|Rules::MaximizeHoriz|Rules::Position|Rules::Size); updateWindowRules(Rules::MaximizeVert|Rules::MaximizeHoriz|Rules::Position|Rules::Size);
} }