diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-04-27 11:19:58 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-02 18:31:55 +0200 |
commit | d5cc474aef6bf5a23694053ab9c8770ea3f21e6f (patch) | |
tree | 9bead7ab099de9675204d82ae397746cec232ff8 /sway/input/seat.c | |
parent | xdg_shell: Fix crash if popup generates while toplevel is in the scratchpad (diff) | |
download | sway-d5cc474aef6bf5a23694053ab9c8770ea3f21e6f.tar.gz sway-d5cc474aef6bf5a23694053ab9c8770ea3f21e6f.tar.zst sway-d5cc474aef6bf5a23694053ab9c8770ea3f21e6f.zip |
render: pass rendering state together in a struct
This lets us easily add rendering state that we need in the future
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 5 |
1 files changed, 2 insertions, 3 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 | ||
1729 | void seatop_render(struct sway_seat *seat, struct sway_output *output, | 1729 | void 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 | ||