fix bug in mouseresize with Xinerama

This commit is contained in:
Julien Danjou 2007-09-27 21:32:48 +02:00
parent 11cbd79c62
commit ed4f0c20fe
1 changed files with 7 additions and 3 deletions

10
event.c
View File

@ -108,13 +108,17 @@ movemouse(Client * c, awesome_config *awesomeconf)
static void
resizemouse(Client * c, awesome_config *awesomeconf)
{
int ocx, ocy;
int nw, nh;
int ocx, ocy, nw, nh, real_screen;
XEvent ev;
if(XineramaIsActive(c->display))
real_screen = DefaultScreen(c->display);
else
real_screen = awesomeconf->screen;
ocx = c->x;
ocy = c->y;
if(XGrabPointer(c->display, RootWindow(c->display, c->screen), False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
if(XGrabPointer(c->display, RootWindow(c->display, real_screen), False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
None, dc[c->screen].cursor[CurResize], CurrentTime) != GrabSuccess)
return;
c->ismax = False;