seat: Remove dead seatop_render function

This commit is contained in:
Alexander Orzechowski 2022-02-21 20:57:45 -05:00 committed by Kirill Primak
parent 74d1116294
commit c8398d19c3
3 changed files with 0 additions and 26 deletions

View file

@ -43,8 +43,6 @@ struct sway_seatop_impl {
uint32_t time_msec, enum wlr_tablet_tool_tip_state state); uint32_t time_msec, enum wlr_tablet_tool_tip_state state);
void (*end)(struct sway_seat *seat); void (*end)(struct sway_seat *seat);
void (*unref)(struct sway_seat *seat, struct sway_container *con); 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; 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); 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); bool seatop_allows_set_cursor(struct sway_seat *seat);
/** /**

View file

@ -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, void output_render(struct sway_output *output, struct timespec *when,
pixman_region32_t *damage) { pixman_region32_t *damage) {
struct wlr_output *wlr_output = output->wlr_output; 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]); &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]);
} }
render_seatops(output, damage);
struct sway_seat *seat = input_manager_current_seat(); struct sway_seat *seat = input_manager_current_seat();
struct sway_container *focus = seat_get_focused_container(seat); struct sway_container *focus = seat_get_focused_container(seat);
if (focus && focus->view) { if (focus && focus->view) {

View file

@ -1684,13 +1684,6 @@ void seatop_end(struct sway_seat *seat) {
seat->seatop_impl = NULL; 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) { bool seatop_allows_set_cursor(struct sway_seat *seat) {
return seat->seatop_impl->allow_set_cursor; return seat->seatop_impl->allow_set_cursor;
} }