Inhibit unmaximizing in various situations, e.g. when shaded.

SVN revision: 28761
This commit is contained in:
Kim Woelders 2007-03-16 03:48:48 +00:00
parent d4fc13642f
commit 0be44b1c43
1 changed files with 5 additions and 5 deletions

View File

@ -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)
;