summaryrefslogtreecommitdiffstats
path: root/src/gui_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-22 21:14:53 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-22 21:14:53 +0000
commitebfec1c531f32d424bb2aca6e7391ef3bfcbfe20 (patch)
treed017ab5fcc15f2eef851de089c3b2aef39d7a387 /src/gui_x11.c
parent3d79f0a4309995956bd8889940cca22f7a15881d (diff)
patch 9.0.1234: the code style has to be checked manuallyv9.0.1234
Problem: The code style has to be checked manually. Solution: Add basic code style checks in a test. Fix or avoid uncovered problems.
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c7
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;
}