mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-12 05:34:39 -04:00
Refactor surface damaging and rendering code
This is based on code from Sway, which is also MIT licensed hence compatible. This makes the surface damaging and rendering code easier to follow and makes it easier to import future changes to Sway as well.
This commit is contained in:
parent
bfd7d605b8
commit
2db815aa23
10 changed files with 408 additions and 243 deletions
8
output.h
8
output.h
|
|
@ -23,10 +23,12 @@ struct cg_output {
|
|||
struct wl_list link; // cg_server::outputs
|
||||
};
|
||||
|
||||
typedef void (*cg_surface_iterator_func_t)(struct cg_output *output, struct wlr_surface *surface, struct wlr_box *box, void *user_data);
|
||||
|
||||
void handle_new_output(struct wl_listener *listener, void *data);
|
||||
void output_damage_view_surface(struct cg_output *output, struct cg_view *view);
|
||||
void output_damage_view_whole(struct cg_output *cg_output, struct cg_view *view);
|
||||
void output_damage_drag_icon(struct cg_output *output, struct cg_drag_icon *icon);
|
||||
void output_view_for_each_surface(struct cg_output *output, struct cg_view *view, cg_surface_iterator_func_t iterator, void *user_data);
|
||||
void output_drag_icons_for_each_surface(struct cg_output *output, struct wl_list *drag_icons, cg_surface_iterator_func_t iterator, void *user_data);
|
||||
void output_damage_surface(struct cg_output *output, struct wlr_surface *surface, double lx, double ly, bool whole);
|
||||
void output_set_window_title(struct cg_output *output, const char *title);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue