mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
tinywl: init cursor_mode
valgrind complains on a use-before-init for the cursor mode.
This commit is contained in:
parent
74381f3bc3
commit
64fe6ab300
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue