From 5b3e057a96a73c3e0fb4bff00d357c29a50eb2e8 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 24 Apr 2007 16:20:43 -0400 Subject: [PATCH] Fix the stacking of the bar when there are fullscreen windows. --- cmd/wmii/main.c | 2 +- cmd/wmii/view.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/wmii/main.c b/cmd/wmii/main.c index a4b65530..25244812 100644 --- a/cmd/wmii/main.c +++ b/cmd/wmii/main.c @@ -281,7 +281,7 @@ struct { /* * There's no way to check accesses to destroyed windows, thus - * those cases are ignored (especially on UnmapNotify's). + * those cases are ignored (especially on UnmapNotifies). * Other types of errors call Xlib's default error handler, which * calls exit(). */ diff --git a/cmd/wmii/view.c b/cmd/wmii/view.c index 15b70fc9..1377a6da 100644 --- a/cmd/wmii/view.c +++ b/cmd/wmii/view.c @@ -215,8 +215,10 @@ restack_view(View *v) { if(f != a->sel) wins[n++] = f->client->framewin; } - if(n) + if(n) { + XRaiseWindow(blz.dpy, wins[0]); XRestackWindows(blz.dpy, wins, n); + } } void