Inhibit unmaximizing in various situations, e.g. when shaded.
SVN revision: 28761
This commit is contained in:
parent
d4fc13642f
commit
0be44b1c43
10
src/size.c
10
src/size.c
|
@ -44,6 +44,11 @@ MaxSizeHV(EWin * ewin, const char *resize_type, int direction)
|
|||
if (!ewin)
|
||||
return;
|
||||
|
||||
if (ewin->state.inhibit_max_hor && (direction & MAX_HOR))
|
||||
return;
|
||||
if (ewin->state.inhibit_max_ver && (direction & MAX_VER))
|
||||
return;
|
||||
|
||||
if (ewin->state.maximized_horz || ewin->state.maximized_vert)
|
||||
{
|
||||
EwinMoveResize(ewin, ewin->lx, ewin->ly, ewin->lw, ewin->lh);
|
||||
|
@ -56,11 +61,6 @@ MaxSizeHV(EWin * ewin, const char *resize_type, int direction)
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (ewin->state.inhibit_max_hor && (direction & MAX_HOR))
|
||||
return;
|
||||
if (ewin->state.inhibit_max_ver && (direction & MAX_VER))
|
||||
return;
|
||||
|
||||
type = MAX_ABSOLUTE; /* Select default */
|
||||
if (!resize_type)
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue