you can't resize fully maxed windows
This commit is contained in:
parent
44be67844a
commit
119c48fc6c
1 changed files with 4 additions and 4 deletions
|
@ -1685,6 +1685,10 @@ void client_setup_decor_and_functions(ObClient *self)
|
|||
}
|
||||
}
|
||||
|
||||
/* can't resize maximized windows */
|
||||
if (self->max_horz && self->max_vert)
|
||||
self->functions &=~ OB_CLIENT_FUNC_RESIZE;
|
||||
|
||||
if (!(self->functions & OB_CLIENT_FUNC_SHADE))
|
||||
self->decorations &= ~OB_FRAME_DECOR_SHADE;
|
||||
if (!(self->functions & OB_CLIENT_FUNC_ICONIFY))
|
||||
|
@ -1700,10 +1704,6 @@ void client_setup_decor_and_functions(ObClient *self)
|
|||
self->decorations &= ~OB_FRAME_DECOR_MAXIMIZE;
|
||||
}
|
||||
|
||||
/* kill the handle on fully maxed windows */
|
||||
if (self->max_vert && self->max_horz)
|
||||
self->decorations &= ~(OB_FRAME_DECOR_HANDLE | OB_FRAME_DECOR_GRIPS);
|
||||
|
||||
/* If there are no decorations to remove, don't allow the user to try
|
||||
toggle the state */
|
||||
if (self->decorations == 0)
|
||||
|
|
Loading…
Reference in a new issue