diff options
Diffstat (limited to 'sys/cmd/wm/input.c')
-rw-r--r-- | sys/cmd/wm/input.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/cmd/wm/input.c b/sys/cmd/wm/input.c index 93bdc50..a91ecd8 100644 --- a/sys/cmd/wm/input.c +++ b/sys/cmd/wm/input.c @@ -140,9 +140,8 @@ focus_surface(Client *client, struct wlr_surface *surface, double sx, double sy, focus(client, 0); } -static void -move(uint32 time) +notify_move(uint32 time) { double sx, sy; Client *client; @@ -200,7 +199,7 @@ cursor_move(struct wl_listener *l, void *data) { struct wlr_event_pointer_motion *event = data; wlr_cursor_move(server.cursor.dot, event->device, event->delta_x, event->delta_y); - move(event->time_msec); + notify_move(event->time_msec); } void @@ -208,7 +207,7 @@ cursor_move_abs(struct wl_listener *l, void *data) { struct wlr_event_pointer_motion_absolute *event = data; wlr_cursor_warp_absolute(server.cursor.dot, event->device, event->x, event->y); - move(event->time_msec); + notify_move(event->time_msec); } void |