diff options
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r-- | src/gui_x11.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c index a239e0b547..540f143e2a 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -3095,10 +3095,13 @@ gui_mch_getmouse(int *x, int *y) unsigned int mask; if (gui.wid && XQueryPointer(gui.dpy, gui.wid, &root, &child, - &rootx, &rooty, &winx, &winy, &mask)) { + &rootx, &rooty, &winx, &winy, &mask)) + { *x = winx; *y = winy; - } else { + } + else + { *x = -1; *y = -1; } |