mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
Completely switch over to new iterators
This commit is contained in:
parent
e9d674cfd2
commit
8d5cc8625c
3 changed files with 98 additions and 250 deletions
|
|
@ -39,16 +39,6 @@ struct sway_output {
|
|||
} events;
|
||||
};
|
||||
|
||||
/**
|
||||
* Contains a surface's root geometry information. For instance, when rendering
|
||||
* a popup, this will contain the parent view's position and size.
|
||||
*/
|
||||
struct root_geometry {
|
||||
double x, y;
|
||||
int width, height;
|
||||
float rotation;
|
||||
};
|
||||
|
||||
typedef void (*sway_surface_iterator_func_t)(struct sway_output *output,
|
||||
struct wlr_surface *surface, struct wlr_box *box, float rotation,
|
||||
void *user_data);
|
||||
|
|
@ -77,14 +67,6 @@ struct sway_container *output_get_active_workspace(struct sway_output *output);
|
|||
void output_render(struct sway_output *output, struct timespec *when,
|
||||
pixman_region32_t *damage);
|
||||
|
||||
bool output_get_surface_box(struct root_geometry *geo,
|
||||
struct sway_output *output, struct wlr_surface *surface, int sx, int sy,
|
||||
struct wlr_box *surface_box);
|
||||
|
||||
void output_surface_for_each_surface(struct wlr_surface *surface,
|
||||
double ox, double oy, struct root_geometry *geo,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data);
|
||||
|
||||
void output_surface_for_each_surface2(struct sway_output *output,
|
||||
struct wlr_surface *surface, double ox, double oy, float rotation,
|
||||
sway_surface_iterator_func_t iterator, void *user_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue