diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-22 18:34:08 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2023-02-22 13:37:44 -0500 |
commit | d6cb4fa8de1e540c58b58d29d1520df296e46d1f (patch) | |
tree | e12cce906c4470fdd7a78e765f3cc6bc92ec7963 /sway/input | |
parent | 423459723bc488b69aa6fafcc9aa4e13fdf92717 (diff) |
Constify pixman_region32_t for rendering functions
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 2 | ||||
-rw-r--r-- | sway/input/seatop_move_tiling.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index bff425dd..14931ce0 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1727,7 +1727,7 @@ void seatop_end(struct sway_seat *seat) { } void seatop_render(struct sway_seat *seat, struct sway_output *output, - pixman_region32_t *damage) { + const pixman_region32_t *damage) { if (seat->seatop_impl->render) { seat->seatop_impl->render(seat, output, damage); } diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c index 223c6c08..5498e909 100644 --- a/sway/input/seatop_move_tiling.c +++ b/sway/input/seatop_move_tiling.c @@ -32,7 +32,7 @@ struct seatop_move_tiling_event { }; static void handle_render(struct sway_seat *seat, - struct sway_output *output, pixman_region32_t *damage) { + struct sway_output *output, const pixman_region32_t *damage) { struct seatop_move_tiling_event *e = seat->seatop_data; if (!e->threshold_reached) { return; |