From 64fe6ab300ae36a8219281dc40471bbdf466358b 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/tinywl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tinywl') diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index 2abcfb11..e21d4734 100644 --- a/tinywl/tinywl.c +++ b/tinywl/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