From beda2a82726f5aaf464789a0de22e9b42467169d Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Sat, 7 Dec 2002 11:15:08 +0000 Subject: [PATCH] Fix (for good this time, I think) the race cond when dragging windows from one desk to another. (Old svn revision: 10783) --- src/client.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client.c b/src/client.c index d64e135f0..55a6aec0e 100644 --- a/src/client.c +++ b/src/client.c @@ -2623,7 +2623,6 @@ static GtkToXEventFilterStatus clientMove_event_filter(XEvent * xevent, gpointer Client *c = passdata->c; gboolean moving = TRUE; XWindowChanges wc; - XEvent ev; DBG("entering clientMove_event_filter\n"); @@ -2687,7 +2686,7 @@ static GtkToXEventFilterStatus clientMove_event_filter(XEvent * xevent, gpointer { int cx, cy, left, right, top, bottom; - while(XCheckTypedEvent(dpy, MotionNotify, &ev)); + while(XCheckTypedEvent(dpy, MotionNotify, xevent)); if(!passdata->grab && box_move) { @@ -2712,14 +2711,12 @@ static GtkToXEventFilterStatus clientMove_event_filter(XEvent * xevent, gpointer XWarpPointer(dpy, None, root, 0, 0, 0, 0, XDisplayWidth(dpy, screen) - 11, msy); msx = xevent->xmotion.x_root = XDisplayWidth(dpy, screen) - 11; workspaceSwitch(workspace - 1, c); - XFlush(dpy); } else if((msx == XDisplayWidth(dpy, screen) - 1) && wrap_workspaces) { XWarpPointer(dpy, None, root, 0, 0, 0, 0, 10, msy); msx = xevent->xmotion.x_root = 10; workspaceSwitch(workspace + 1, c); - XFlush(dpy); } } -- GitLab