wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 4b50294b0dc3823faa1c9e8b096f6b418f3741b4
parent ab068f2594bab51eab69c14b494896be99ecb4c4
Author: garbeam <garbeam@mmv.wmii.de>
Date:   Wed, 14 Dec 2005 04:49:25 +0200

improved detach policy on tabbed frame in col layout


Diffstat:
cmd/wm/layout_column.c | 1+
cmd/wm/mouse.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/wm/layout_column.c b/cmd/wm/layout_column.c @@ -188,6 +188,7 @@ static void detach_col(Area *a, Client *c, Bool unmap) cext_detach_item(&col->frames, f); destroy_frame(f); } + else return; if (cext_sizeof_container(&col->frames)) iter_arrange_column(col, a); else { diff --git a/cmd/wm/mouse.c b/cmd/wm/mouse.c @@ -309,7 +309,7 @@ void mouse_move(Frame * f) pt.y = ey; XSync(dpy, False); XGrabServer(dpy); - while (XGrabPointer(dpy, f->win, False, ButtonMotionMask | ButtonReleaseMask, + while (XGrabPointer(dpy, root, False, ButtonMotionMask | ButtonReleaseMask, GrabModeAsync, GrabModeAsync, None, move_cursor, CurrentTime) != GrabSuccess) usleep(20000);