diff --git a/src/mango.c b/src/mango.c index c42ca25b..a19c2a95 100644 --- a/src/mango.c +++ b/src/mango.c @@ -5262,7 +5262,7 @@ void touchdown(struct wl_listener *listener, void *data) { /* Find the client under the pointer and send the event along. */ xytonode(lx, ly, &surface, &c, NULL, &sx, &sy); if (surface != NULL && wlr_surface_accepts_touch(surface, seat)) { - if (sloppyfocus && c) + if (c) focusclient(c, 0); wlr_seat_touch_notify_down(seat, surface, event->time_msec, @@ -5362,7 +5362,7 @@ void touchmotion(struct wl_listener *listener, void *data) { sy = ly - node_y; toplevel_from_wlr_surface(surface, &c, NULL); - if (sloppyfocus && c) + if (c) focusclient(c, 0); wlr_seat_touch_point_focus(seat, surface, event->time_msec, @@ -5372,8 +5372,7 @@ void touchmotion(struct wl_listener *listener, void *data) { wlr_idle_notifier_v1_notify_activity(idle_notifier, seat); } else { - if (sloppyfocus) - focusclient(NULL, 0); + focusclient(NULL, 0); wlr_seat_touch_point_clear_focus(seat, event->time_msec, event->touch_id); wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);