kwin, add debug statements to configureReqest
This commit is contained in:
parent
9ec8ee095a
commit
9397b14e81
1 changed files with 7 additions and 1 deletions
|
@ -1635,12 +1635,18 @@ void Client::configureRequest(int value_mask, int rx, int ry, int rw, int rh, in
|
|||
{
|
||||
// "maximized" is a user setting -> we do not allow the client to resize itself
|
||||
// away from this & against the users explicit wish
|
||||
kDebug(1212) << this << bool(value_mask & (CWX|CWWidth|CWY|CWHeight)) <<
|
||||
bool(maximizeMode() & MaximizeVertical) <<
|
||||
bool(maximizeMode() & MaximizeHorizontal);
|
||||
if (maximizeMode() & MaximizeVertical)
|
||||
value_mask &= ~(CWY|CWHeight); // do not allow clients to drop out of vertical ...
|
||||
if (maximizeMode() & MaximizeHorizontal)
|
||||
value_mask &= ~(CWX|CWWidth); // .. or horizontal maximization (MaximizeFull == MaximizeVertical|MaximizeHorizontal)
|
||||
if (!(value_mask & (CWX|CWWidth|CWY|CWHeight)))
|
||||
if (!(value_mask & (CWX|CWWidth|CWY|CWHeight))) {
|
||||
kDebug(1212) << "DENIED";
|
||||
return; // nothing to (left) to do for use - bugs #158974, #252314
|
||||
}
|
||||
kDebug(1212) << "PERMITTED" << this << bool(value_mask & (CWX|CWWidth|CWY|CWHeight));
|
||||
|
||||
if (gravity == 0) // default (nonsense) value for the argument
|
||||
gravity = xSizeHint.win_gravity;
|
||||
|
|
Loading…
Reference in a new issue