fix bug in mouseresize with Xinerama
This commit is contained in:
parent
11cbd79c62
commit
ed4f0c20fe
10
event.c
10
event.c
|
@ -108,13 +108,17 @@ movemouse(Client * c, awesome_config *awesomeconf)
|
||||||
static void
|
static void
|
||||||
resizemouse(Client * c, awesome_config *awesomeconf)
|
resizemouse(Client * c, awesome_config *awesomeconf)
|
||||||
{
|
{
|
||||||
int ocx, ocy;
|
int ocx, ocy, nw, nh, real_screen;
|
||||||
int nw, nh;
|
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
|
if(XineramaIsActive(c->display))
|
||||||
|
real_screen = DefaultScreen(c->display);
|
||||||
|
else
|
||||||
|
real_screen = awesomeconf->screen;
|
||||||
|
|
||||||
ocx = c->x;
|
ocx = c->x;
|
||||||
ocy = c->y;
|
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)
|
None, dc[c->screen].cursor[CurResize], CurrentTime) != GrabSuccess)
|
||||||
return;
|
return;
|
||||||
c->ismax = False;
|
c->ismax = False;
|
||||||
|
|
Loading…
Reference in New Issue