[hackers] [wmii] Fix the stacking of the bar in fullscreen mode.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri, 01 Jun 2007 01:10:13 -0000

changeset: 2123:e696e6019607
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Apr 23 02:44:02 2007 -0400
summary: Fix the stacking of the bar in fullscreen mode.

diff -r 03c0d6f15f55 -r e696e6019607 cmd/wmii/area.c
--- a/cmd/wmii/area.c Mon Apr 23 02:29:02 2007 -0400
+++ b/cmd/wmii/area.c Mon Apr 23 02:44:02 2007 -0400
@@ -366,12 +366,12 @@ place_frame(Frame *f) {
 
         if(!fit || (p1.x + Dx(f->r) > a->r.max.x)) {
                 diff = Dx(a->r) - Dx(f->r);
- p1.x = a->r.min.x + (random() % min(diff, 1));
+ p1.x = a->r.min.x + (random() % max(diff, 1));
         }
 
         if(!fit && (p1.y + Dy(f->r) > a->r.max.y)) {
                 diff = Dy(a->r) - Dy(f->r);
- p1.y = a->r.min.y + (random() % min(diff, 1));
+ p1.y = a->r.min.y + (random() % max(diff, 1));
         }
 
         p1 = subpt(p1, f->r.min);
diff -r 03c0d6f15f55 -r e696e6019607 cmd/wmii/view.c
--- a/cmd/wmii/view.c Mon Apr 23 02:29:02 2007 -0400
+++ b/cmd/wmii/view.c Mon Apr 23 02:44:02 2007 -0400
@@ -224,8 +224,10 @@ restack_view(View *v) {
                                 if(f != a->sel)
                                         wins[n++] = f->client->framewin->w;
                 }
- if(n)
+ if(n) {
+ XRaiseWindow(display, wins[0]);
                 XRestackWindows(display, wins, n);
+ }
 }
 
 void
Received on Fri Jun 01 2007 - 03:10:13 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:05 UTC