Use wlr_output_configure_primary_swapchain()

This commit is contained in:
Simon Ser 2023-02-22 18:50:32 +01:00
parent 9498e4d261
commit 7c9e11e892
3 changed files with 21 additions and 5 deletions

View file

@ -28,6 +28,7 @@ struct sway_output {
struct timespec last_frame;
struct wlr_damage_ring damage_ring;
struct wlr_swapchain *swapchain;
int lx, ly; // layout coords
int width, height; // transformed buffer size
@ -112,7 +113,8 @@ bool output_has_opaque_overlay_layer_surface(struct sway_output *output);
struct sway_workspace *output_get_active_workspace(struct sway_output *output);
void output_render(struct sway_output *output, pixman_region32_t *damage);
void output_render(struct sway_output *output, struct wlr_buffer *buffer,
pixman_region32_t *damage);
void output_surface_for_each_surface(struct sway_output *output,
struct wlr_surface *surface, double ox, double oy,