don't let you maximize menu and toolbars

This commit is contained in:
Dana Jansens 2007-05-23 16:17:03 +00:00
parent 630d9504d3
commit 192cc6b4f4

View file

@ -1625,9 +1625,11 @@ void client_setup_decor_and_functions(ObClient *self)
case OB_CLIENT_TYPE_MENU: case OB_CLIENT_TYPE_MENU:
case OB_CLIENT_TYPE_TOOLBAR: case OB_CLIENT_TYPE_TOOLBAR:
/* these windows can't iconify */ /* these windows can't iconify or maximize */
self->decorations &= ~OB_FRAME_DECOR_ICONIFY; self->decorations &= ~(OB_FRAME_DECOR_ICONIFY |
self->functions &= ~OB_CLIENT_FUNC_ICONIFY; OB_FRAME_DECOR_MAXIMIZE);
self->functions &= ~(OB_CLIENT_FUNC_ICONIFY |
OB_CLIENT_FUNC_MAXIMIZE);
break; break;
case OB_CLIENT_TYPE_SPLASH: case OB_CLIENT_TYPE_SPLASH: