JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
update bar when cycling layout
authorMarco Peereboom <marco@conformal.com>
Sun, 18 Oct 2009 15:06:15 +0000 (15:06 +0000)
committerMarco Peereboom <marco@conformal.com>
Sun, 18 Oct 2009 15:06:15 +0000 (15:06 +0000)
scrotwm.c

index a75a942..c0f4264 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -1736,6 +1736,7 @@ cycle_layout(struct swm_region *r, union arg *args)
        stack();
        a.id = SWM_ARG_ID_FOCUSCUR;
        focus(r, &a);
+       bar_update();
 }
 
 void
@@ -3881,8 +3882,8 @@ destroynotify(XEvent *e)
        a.id = SWM_ARG_ID_FOCUSPREV;
        focus(win->ws->r, &a);
        unmanage_window(win);
-       free_window(win);
        stack();
+       free_window(win);
 }
 
 void