From c8398d19c3866d6f13baad319d162a911647ff68 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 21 Feb 2022 20:57:45 -0500 Subject: [PATCH] seat: Remove dead seatop_render function --- include/sway/input/seat.h | 9 --------- sway/desktop/render.c | 10 ---------- sway/input/seat.c | 7 ------- 3 files changed, 26 deletions(-) diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index a2becbde3..70f1f5f6d 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -43,8 +43,6 @@ struct sway_seatop_impl { uint32_t time_msec, enum wlr_tablet_tool_tip_state state); void (*end)(struct sway_seat *seat); void (*unref)(struct sway_seat *seat, struct sway_container *con); - void (*render)(struct sway_seat *seat, struct sway_output *output, - pixman_region32_t *damage); bool allow_set_cursor; }; @@ -338,13 +336,6 @@ void seatop_end(struct sway_seat *seat); */ void seatop_unref(struct sway_seat *seat, struct sway_container *con); -/** - * Instructs a seatop to render anything that it needs to render - * (eg. dropzone for move-tiling) - */ -void seatop_render(struct sway_seat *seat, struct sway_output *output, - pixman_region32_t *damage); - bool seatop_allows_set_cursor(struct sway_seat *seat); /** diff --git a/sway/desktop/render.c b/sway/desktop/render.c index cebf10553..62fd82d86 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1006,14 +1006,6 @@ static void render_floating(struct sway_output *soutput, } } -static void render_seatops(struct sway_output *output, - pixman_region32_t *damage) { - struct sway_seat *seat; - wl_list_for_each(seat, &server.input->seats, link) { - seatop_render(seat, output, damage); - } -} - void output_render(struct sway_output *output, struct timespec *when, pixman_region32_t *damage) { struct wlr_output *wlr_output = output->wlr_output; @@ -1113,8 +1105,6 @@ void output_render(struct sway_output *output, struct timespec *when, &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]); } - render_seatops(output, damage); - struct sway_seat *seat = input_manager_current_seat(); struct sway_container *focus = seat_get_focused_container(seat); if (focus && focus->view) { diff --git a/sway/input/seat.c b/sway/input/seat.c index 2efabf29b..b1be09085 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1684,13 +1684,6 @@ void seatop_end(struct sway_seat *seat) { seat->seatop_impl = NULL; } -void seatop_render(struct sway_seat *seat, struct sway_output *output, - pixman_region32_t *damage) { - if (seat->seatop_impl->render) { - seat->seatop_impl->render(seat, output, damage); - } -} - bool seatop_allows_set_cursor(struct sway_seat *seat) { return seat->seatop_impl->allow_set_cursor; }