summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <[email protected]>2022-03-04 21:59:23 -0500
committerKirill Primak <[email protected]>2022-03-17 17:16:47 +0000
commit5766dc59474df90bf937fd91d3ba2c3badee8942 (patch)
treee6c0b3c99ee272b44cf9deb872f07f7a4ba8a084
parente8a997d7cd2fba760c7c32140a287f63a85801f1 (diff)
tinywl: init cursor_mode
valgrind complains on a use-before-init for the cursor mode.
-rw-r--r--tinywl.c1
1 files changed, 1 insertions, 0 deletions
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;