mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 14:15:58 +01: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…
Reference in a new issue