summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-23 16:17:03 +0000
committerDana Jansens <danakj@orodu.net>2007-05-23 16:17:03 +0000
commit192cc6b4f4b275ee41cfad1117724bfd03ffa35d (patch)
treedb6bc78e75127c5c7cd54bc08aafcc146760be31 /openbox
parent630d9504d388b2ce665f3ced5b3fed1a656bc87d (diff)
don't let you maximize menu and toolbars
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index d3e8f1dc..2c504549 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1625,9 +1625,11 @@ void client_setup_decor_and_functions(ObClient *self)
case OB_CLIENT_TYPE_MENU:
case OB_CLIENT_TYPE_TOOLBAR:
- /* these windows can't iconify */
- self->decorations &= ~OB_FRAME_DECOR_ICONIFY;
- self->functions &= ~OB_CLIENT_FUNC_ICONIFY;
+ /* these windows can't iconify or maximize */
+ self->decorations &= ~(OB_FRAME_DECOR_ICONIFY |
+ OB_FRAME_DECOR_MAXIMIZE);
+ self->functions &= ~(OB_CLIENT_FUNC_ICONIFY |
+ OB_CLIENT_FUNC_MAXIMIZE);
break;
case OB_CLIENT_TYPE_SPLASH: