From 5766dc59474df90bf937fd91d3ba2c3badee8942 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 4 Mar 2022 21:59:23 -0500 Subject: tinywl: init cursor_mode valgrind complains on a use-before-init for the cursor mode. --- tinywl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tinywl.c') diff --git a/tinywl.c b/tinywl.c index 2abcfb1..e21d473 100644 --- a/tinywl.c +++ b/tinywl.c @@ -842,6 +842,7 @@ int main(int argc, char *argv[]) { * * And more comments are sprinkled throughout the notify functions above. */ + server.cursor_mode = TINYWL_CURSOR_PASSTHROUGH; server.cursor_motion.notify = server_cursor_motion; wl_signal_add(&server.cursor->events.motion, &server.cursor_motion); server.cursor_motion_absolute.notify = server_cursor_motion_absolute; -- cgit v1.2.3