]> Dogcows Code - chaz/openbox/commitdiff
add debug prints
authorDana Jansens <danakj@orodu.net>
Thu, 7 Jun 2007 05:24:06 +0000 (05:24 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 7 Jun 2007 05:24:06 +0000 (05:24 +0000)
openbox/client.c

index 2f374bbff5051250d00be751679e92149dbf1cfc..03e4c9a5f33a3976691ba8cf18c4cbb2a3cd9710 100644 (file)
@@ -1123,16 +1123,24 @@ static void client_get_desktop(ObClient *self)
         }
         if (all != screen_num_desktops) {
             self->desktop = all;
+
+            ob_debug("client desktop set from parents: 0x%x\n",
+                     self->desktop);
         }
         /* try get from the startup-notification protocol */
         else if (sn_get_desktop(self->startup_id, &self->desktop)) {
             if (self->desktop >= screen_num_desktops &&
                 self->desktop != DESKTOP_ALL)
                 self->desktop = screen_num_desktops - 1;
+            ob_debug("client desktop set from startup-notification: 0x%x\n",
+                     self->desktop);
         }
         /* defaults to the current desktop */
-        else
+        else {
             self->desktop = screen_desktop;
+            ob_debug("client desktop set to the current desktop: %d\n",
+                     self->desktop);
+        }
     }
 }
 
This page took 0.031073 seconds and 4 git commands to generate.