aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-04-27 11:19:58 +0200
committerSimon Ser <contact@emersion.fr>2023-05-02 18:31:55 +0200
commitd5cc474aef6bf5a23694053ab9c8770ea3f21e6f (patch)
tree9bead7ab099de9675204d82ae397746cec232ff8 /include/sway/input
parent33cfdbe886144e8515593d96a80d850a7c6e382e (diff)
render: pass rendering state together in a struct
This lets us easily add rendering state that we need in the future
Diffstat (limited to 'include/sway/input')
-rw-r--r--include/sway/input/seat.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 7b2d3d07..6d29cf3b 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -12,6 +12,7 @@
#include "sway/input/text_input.h"
struct sway_seat;
+struct render_context;
struct sway_seatop_impl {
void (*button)(struct sway_seat *seat, uint32_t time_msec,
@@ -49,8 +50,7 @@ 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,
- const pixman_region32_t *damage);
+ void (*render)(struct sway_seat *seat, struct render_context *ctx);
bool allow_set_cursor;
};
@@ -356,8 +356,7 @@ 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,
- const pixman_region32_t *damage);
+void seatop_render(struct sway_seat *seat, struct render_context *ctx);
bool seatop_allows_set_cursor(struct sway_seat *seat);