aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/wm/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/wm/input.c')
-rw-r--r--sys/cmd/wm/input.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/cmd/wm/input.c b/sys/cmd/wm/input.c
index b4ceba5..d9e6285 100644
--- a/sys/cmd/wm/input.c
+++ b/sys/cmd/wm/input.c
@@ -227,14 +227,12 @@ cursor_button(struct wl_listener *l, void *data)
struct wlr_surface *surface;
struct wlr_event_pointer_button *event = data;
- wlr_seat_pointer_notify_button(server.input.seat,
- event->time_msec, event->button, event->state);
-
+ wlr_seat_pointer_notify_button(server.input.seat, event->time_msec, event->button, event->state);
client = client_at(server.cursor.dot->x, server.cursor.dot->y, &surface, &sx, &sy);
if (event->state == WLR_BUTTON_RELEASED)
server.cursor.mode = CursorPassthrough;
else
- focus(client, surface, 1);
+ focus(client, 1);
}
void
@@ -257,8 +255,8 @@ void
request_cursor(struct wl_listener *l, void *data)
{
struct wlr_seat_pointer_request_set_cursor_event *event = data;
- struct wlr_seat_client *focused_client = server.input.seat->pointer_state.focused_client;
- if(focused_client == event->seat_client)
+ struct wlr_seat_client *focused = server.input.seat->pointer_state.focused_client;
+ if(focused == event->seat_client)
wlr_cursor_set_surface(server.cursor.dot, event->surface, event->hotspot_x, event->hotspot_y);
}