[hackers] [wmii] Fix the stacking of the bar when there are fullscreen windows.

From: Kris Maglione <jg_AT_suckless.org>
Date: Tue Apr 24 22:25:30 2007

changeset: 2077:bb35ea06d096
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Apr 24 16:20:43 2007 -0400
summary: Fix the stacking of the bar when there are fullscreen windows.

diff -r 712235c3f748 -r bb35ea06d096 cmd/wmii/main.c
--- a/cmd/wmii/main.c Sat Apr 21 23:53:39 2007 -0400
+++ b/cmd/wmii/main.c Tue Apr 24 16:20:43 2007 -0400
@@ -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 -r 712235c3f748 -r bb35ea06d096 cmd/wmii/view.c
--- a/cmd/wmii/view.c Sat Apr 21 23:53:39 2007 -0400
+++ b/cmd/wmii/view.c Tue Apr 24 16:20:43 2007 -0400
@@ -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
Received on Tue Apr 24 2007 - 22:25:30 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:41 UTC