Commit e2bdcdb1daaf7ffcf9e4e93adfb0f18bc88ad958 Parent: ea26690302a73e82fe1028842f3e17d00167e682 Author: mcol <mcol@posteo.net> Date: 2020-11-11 23:25:40 +0000 Committer: mcol <mcol@posteo.net> Committed: 2020-11-11 23:25:40 +0000 remove unnecessary desktop_view_at call on cursor button
src/input.c Modified
@@ -173,15 +173,15 @@ wlr_seat_pointer_notify_button( server->seat, event->time_msec, event->button, event->state ); - double sx, sy; - struct wlr_surface *surface; - struct view *view = desktop_view_at( - server, server->cursor->x, server->cursor->y, &surface, &sx, &sy - ); if (event->state == WLR_BUTTON_RELEASED) { server->cursor_mode = CURSOR_PASSTHROUGH; } else { + double sx, sy; + struct wlr_surface *surface; + struct view *view = desktop_view_at( + server, server->cursor->x, server->cursor->y, &surface, &sx, &sy + ); focus_view(view, surface); } }