]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
allow restacking of transients above one another
[chaz/openbox] / openbox / focus.c
index ad18d9748aea81f8a0e18c1893826393790aed05..8b7eb29a20ca283b9cf9750b8297df806ab07dc5 100644 (file)
@@ -34,7 +34,6 @@ void focus_startup()
     XSetWindowAttributes attrib;
 
     focus_client = NULL;
-    focus_cycle_popup = popup_new(TRUE);
 
     attrib.override_redirect = TRUE;
     focus_backup = XCreateWindow(ob_display, ob_root,
@@ -43,6 +42,10 @@ void focus_startup()
                                  CWOverrideRedirect, &attrib);
     XMapRaised(ob_display, focus_backup);
 
+    /* do this *after* focus_backup is created, since it is used for
+       stacking */
+    focus_cycle_popup = popup_new(TRUE);
+
     /* start with nothing focused */
     focus_set_client(NULL);
 }
@@ -265,9 +268,9 @@ static void popup_cycle(Client *c, gboolean show)
         if (p == c)
             title = NULL;
         else
-            title = g_strconcat((p->iconic ? p->icon_title : p->title),
+            title = g_strconcat((c->iconic ? c->icon_title : c->title),
                                 " - ",
-                                (c->iconic ? c->icon_title : c->title),
+                                (p->iconic ? p->icon_title : p->title),
                                 NULL);
 
         popup_show(focus_cycle_popup,
This page took 0.021117 seconds and 4 git commands to generate.