]> Dogcows Code - chaz/openbox/commitdiff
put transients on the current desktop when their parent is on all desktops
authorDana Jansens <danakj@orodu.net>
Mon, 28 May 2007 00:05:51 +0000 (00:05 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 28 May 2007 00:05:51 +0000 (00:05 +0000)
openbox/client.c

index 3f891b5a4712cd0a676fb0ab114da019d342c1e5..dbbba7de3b0fdd299e583b93d7ea3f86edc4508f 100644 (file)
@@ -1122,13 +1122,16 @@ static void client_get_desktop(ObClient *self)
             self->desktop = screen_num_desktops - 1;
         else
             self->desktop = d;
+        ob_debug("client requested desktop 0x%x\n", self->desktop); 
     } else {
         gboolean trdesk = FALSE;
 
         if (self->transient_for) {
             if (self->transient_for != OB_TRAN_GROUP) {
-                self->desktop = self->transient_for->desktop;
-                trdesk = TRUE;
+                if (self->transient_for->desktop != DESKTOP_ALL) {
+                    self->desktop = self->transient_for->desktop;
+                    trdesk = TRUE;
+                }
             } else {
                 /* if all the group is on one desktop, then open it on the
                    same desktop */
This page took 0.026515 seconds and 4 git commands to generate.