From 08a6da05412961ddf629415a92749b02d875fa62 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Mon, 4 Oct 2021 17:25:48 -0700 Subject: feat(wm): layer shell --- sys/cmd/wm/input.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/cmd/wm/input.c') 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 -- cgit v1.2.1