improved detach policy on tabbed frame in col layout

This commit is contained in:
garbeam 2005-12-14 04:49:25 +02:00
parent ab068f2594
commit 4b50294b0d
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -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);