From ebfec1c531f32d424bb2aca6e7391ef3bfcbfe20 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 22 Jan 2023 21:14:53 +0000 Subject: patch 9.0.1234: the code style has to be checked manually Problem: The code style has to be checked manually. Solution: Add basic code style checks in a test. Fix or avoid uncovered problems. --- src/gui_x11.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui_x11.c') 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; } -- cgit v1.2.3