diff --git a/main.c b/main.c index 53aea5d..0671ef5 100644 --- a/main.c +++ b/main.c @@ -1590,10 +1590,6 @@ buttonpress(struct wl_listener *listener, void *data) { uint32_t mods; Client *c; const Button *b; - double sx, sy; - struct wlr_surface *surface = NULL; - - // IDLE_NOTIFY_ACTIVITY; wlr_idle_notifier_v1_notify_activity(idle_notifier, seat); @@ -1605,7 +1601,7 @@ buttonpress(struct wl_listener *listener, void *data) { break; /* Change focus if the button was _pressed_ over a client */ - xytonode(cursor->x, cursor->y, NULL, &c, NULL, &sx, &sy); + xytonode(cursor->x, cursor->y, NULL, &c, NULL, NULL, NULL); if (c && (!client_is_unmanaged(c) || client_wants_focus(c))) focusclient(c, 1); @@ -1646,10 +1642,6 @@ buttonpress(struct wl_listener *listener, void *data) { } /* If the event wasn't handled by the compositor, notify the client with * pointer focus that a button press has occurred */ - surface = c ? client_surface(c) : NULL; - if(surface && c == selmon->sel) { - wlr_seat_pointer_notify_enter(seat, surface, sx, sy); - } wlr_seat_pointer_notify_button(seat, event->time_msec, event->button, event->state); } @@ -2641,8 +2633,6 @@ void focusclient(Client *c, int lift) { selmon = c->mon; } - wlr_seat_pointer_notify_clear_focus(seat); - if (selmon && selmon->sel && selmon->sel->foreign_toplevel) { wlr_foreign_toplevel_handle_v1_set_activated(selmon->sel->foreign_toplevel, false);