]> Dogcows Code - chaz/openbox/commitdiff
when setting up decor on a window, it needs to reconfigure twice if the decor changes...
authorDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 07:39:44 +0000 (07:39 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 07:39:44 +0000 (07:39 +0000)
openbox/client.c

index 1f1d80328e5bbeb21cbf492a332fea937f669ac4..ebff0bae8d6a0156b9da20f2706e6028c6a2f7b9 100644 (file)
@@ -1114,12 +1114,13 @@ void client_setup_decor_and_functions(ObClient *self)
     client_change_allowed_actions(self);
 
     if (self->frame) {
-        /* this makes sure that these windows appear on all desktops */
-        if (self->type == OB_CLIENT_TYPE_DESKTOP &&
-            self->desktop != DESKTOP_ALL)
-            client_set_desktop(self, DESKTOP_ALL, FALSE);
-
-       /* adjust the client's decorations, etc. */
+        if (self->decorations != self->frame->decorations)
+            /* adjust the client's decorations, etc. */
+            client_reconfigure(self);
+        /* we actually have to do this twice :P
+           the first time it removes the decorations, but now it may need to
+           be reconstrained for being maximized etc, so calling this again
+           will work with the new setup of decorations on the window */
        client_reconfigure(self);
     } else {
         /* this makes sure that these windows appear on all desktops */
This page took 0.027841 seconds and 4 git commands to generate.