]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
Fix a typo that broke transient window hints.
[chaz/openbox] / openbox / client.c
index 9986015c29d9ac3a35bd824552717bc8d6a5f67c..d2378bf7150fddb3f82c474b2f326255a2d7af00 100644 (file)
@@ -165,8 +165,8 @@ void client_set_list(void)
     } else
         windows = NULL;
 
-    OBT_PROP_SETA32(RootWindow(obt_display, ob_screen),
-                    NET_CLIENT_LIST, WINDOW, (gulong*)windows, size);
+    OBT_PROP_SETA32(obt_root(ob_screen), NET_CLIENT_LIST, WINDOW,
+                    (gulong*)windows, size);
 
     if (windows)
         g_free(windows);
@@ -1288,7 +1288,7 @@ void client_update_transient_for(ObClient *self)
             ObWindow *tw = window_find(t);
             /* if this happens then we need to check for it*/
             g_assert(tw != CLIENT_AS_WINDOW(self));
-            if (target && WINDOW_IS_CLIENT(tw)) {
+            if (tw && WINDOW_IS_CLIENT(tw)) {
                 /* watch out for windows with a parent that is something
                    different, like a dockapp for example */
                 target = WINDOW_AS_CLIENT(tw);
@@ -1298,7 +1298,7 @@ void client_update_transient_for(ObClient *self)
         /* Setting the transient_for to Root is actually illegal, however
            applications from time have done this to specify transient for
            their group */
-        if (!target && self->group && t == RootWindow(obt_display, ob_screen))
+        if (!target && self->group && t == obt_root(ob_screen))
             trangroup = TRUE;
     } else if (self->group && self->transient)
         trangroup = TRUE;
This page took 0.027126 seconds and 4 git commands to generate.