diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-04 17:25:48 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-04 17:25:48 -0700 |
commit | 08a6da05412961ddf629415a92749b02d875fa62 (patch) | |
tree | 2e40b74b3b4e660a35b990e87a7d5b3ed6f33d9a /sys/cmd/wm/input.c | |
parent | 36174e35185c34733a84055cd30dda5f7d947397 (diff) |
feat(wm): layer shell
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 |