scaled-scene-buffer: use outputs_update signal

This fixes an issue with buffers not updating when an output is configured
for a new scale. It also supports windows being on more than 2 outputs at
once and in general simplifies the code.
This commit is contained in:
Consolatis 2025-01-09 18:39:59 +01:00
parent 1a6dd845a2
commit 6496773fd1
2 changed files with 13 additions and 56 deletions

View file

@ -34,8 +34,7 @@ struct scaled_scene_buffer {
/* cached wlr_buffers for each scale */
struct wl_list cache; /* struct scaled_buffer_cache_entry.link */
struct wl_listener destroy;
struct wl_listener output_enter;
struct wl_listener output_leave;
struct wl_listener outputs_update;
const struct scaled_scene_buffer_impl *impl;
/*
* Pointer to the per-implementation list of scaled-scene-buffers.