]> Dogcows Code - chaz/openbox/commitdiff
set the desktop hint after everything is read/setup even session stuff
authorDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 09:01:14 +0000 (09:01 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 09:01:14 +0000 (09:01 +0000)
openbox/client.c

index 08a80a486246e5a4b3f0dfff016926e4f2535057..0ee5043401f463974bc1b861619fbbc6cdc910fb 100644 (file)
@@ -233,8 +233,13 @@ void client_manage(Window window)
     self = g_new(ObClient, 1);
     self->obwin.type = Window_Client;
     self->window = window;
+
     client_get_all(self);
     client_restore_session_state(self);
+
+    /* set the desktop hint, to make sure that it always exists */
+    PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop);
+
     client_change_state(self);
 
     /* remove the client's border (and adjust re gravity) */
@@ -698,11 +703,6 @@ static void client_get_desktop(ObClient *self)
        if (!trdesk)
            /* defaults to the current desktop */
            self->desktop = screen_desktop;
-
-    }
-    if (self->desktop != d) {
-        /* set the desktop hint, to make sure that it always exists */
-        PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop);
     }
 }
 
This page took 0.032063 seconds and 4 git commands to generate.