diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-31 10:49:52 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-31 13:05:45 -0400 |
commit | ae6d459000865f0a3a54a1d0429ee28b282a7954 (patch) | |
tree | 264caea4be15679d6da1ffa51c3056780827149d /sway/input/cursor.c | |
parent | Check for null container (diff) | |
download | sway-ae6d459000865f0a3a54a1d0429ee28b282a7954.tar.gz sway-ae6d459000865f0a3a54a1d0429ee28b282a7954.tar.zst sway-ae6d459000865f0a3a54a1d0429ee28b282a7954.zip |
Implement mouse warping
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 74af6426..9cdd66d8 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -156,8 +156,8 @@ static void handle_cursor_motion(struct wl_listener *listener, void *data) { | |||
156 | cursor_send_pointer_motion(cursor, event->time_msec); | 156 | cursor_send_pointer_motion(cursor, event->time_msec); |
157 | } | 157 | } |
158 | 158 | ||
159 | static void handle_cursor_motion_absolute(struct wl_listener *listener, | 159 | static void handle_cursor_motion_absolute( |
160 | void *data) { | 160 | struct wl_listener *listener, void *data) { |
161 | struct sway_cursor *cursor = | 161 | struct sway_cursor *cursor = |
162 | wl_container_of(listener, cursor, motion_absolute); | 162 | wl_container_of(listener, cursor, motion_absolute); |
163 | struct wlr_event_pointer_motion_absolute *event = data; | 163 | struct wlr_event_pointer_motion_absolute *event = data; |