From 8f224149f176fb8de90a82b44f4dd1c6a1b89a4f Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Mon, 4 Oct 2021 10:02:50 -0700 Subject: feat(wm): tiling prototype working --- sys/cmd/wm/input.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/cmd/wm/input.c') 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); } -- cgit v1.2.1