aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-04 21:59:23 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 17:16:47 +0000
commit64fe6ab300ae36a8219281dc40471bbdf466358b (patch)
tree64f55eb7a057769148b02a196ea979d82975412f
parent74381f3bc33d029aab3eb2fd764709211854ef1c (diff)
tinywl: init cursor_mode
valgrind complains on a use-before-init for the cursor mode.
-rw-r--r--tinywl/tinywl.c1
1 files changed, 1 insertions, 0 deletions
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;