tinywl: init cursor_mode

valgrind complains on a use-before-init for the cursor mode.
master
Simon Zeni 3 years ago committed by Kirill Primak
parent 74381f3bc3
commit 64fe6ab300

@ -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;

Loading…
Cancel
Save