aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/seat.c5
-rw-r--r--sway/input/seatop_move_tiling.c9
2 files changed, 6 insertions, 8 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 14931ce0..6b95e46a 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -1726,10 +1726,9 @@ void seatop_end(struct sway_seat *seat) {
1726 seat->seatop_impl = NULL; 1726 seat->seatop_impl = NULL;
1727} 1727}
1728 1728
1729void seatop_render(struct sway_seat *seat, struct sway_output *output, 1729void seatop_render(struct sway_seat *seat, struct render_context *ctx) {
1730 const pixman_region32_t *damage) {
1731 if (seat->seatop_impl->render) { 1730 if (seat->seatop_impl->render) {
1732 seat->seatop_impl->render(seat, output, damage); 1731 seat->seatop_impl->render(seat, ctx);
1733 } 1732 }
1734} 1733}
1735 1734
diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c
index 5498e909..26704d0d 100644
--- a/sway/input/seatop_move_tiling.c
+++ b/sway/input/seatop_move_tiling.c
@@ -31,21 +31,20 @@ struct seatop_move_tiling_event {
31 bool insert_after_target; 31 bool insert_after_target;
32}; 32};
33 33
34static void handle_render(struct sway_seat *seat, 34static void handle_render(struct sway_seat *seat, struct render_context *ctx) {
35 struct sway_output *output, const pixman_region32_t *damage) {
36 struct seatop_move_tiling_event *e = seat->seatop_data; 35 struct seatop_move_tiling_event *e = seat->seatop_data;
37 if (!e->threshold_reached) { 36 if (!e->threshold_reached) {
38 return; 37 return;
39 } 38 }
40 if (e->target_node && node_get_output(e->target_node) == output) { 39 if (e->target_node && node_get_output(e->target_node) == ctx->output) {
41 float color[4]; 40 float color[4];
42 memcpy(&color, config->border_colors.focused.indicator, 41 memcpy(&color, config->border_colors.focused.indicator,
43 sizeof(float) * 4); 42 sizeof(float) * 4);
44 premultiply_alpha(color, 0.5); 43 premultiply_alpha(color, 0.5);
45 struct wlr_box box; 44 struct wlr_box box;
46 memcpy(&box, &e->drop_box, sizeof(struct wlr_box)); 45 memcpy(&box, &e->drop_box, sizeof(struct wlr_box));
47 scale_box(&box, output->wlr_output->scale); 46 scale_box(&box, ctx->output->wlr_output->scale);
48 render_rect(output, damage, &box, color); 47 render_rect(ctx, &box, color);
49 } 48 }
50} 49}
51 50