Use wlr_output_event_commit

Instead of listening to both transform and scale events, we can listen
to the commit event and use the new wlr_output_event_commit struct to
decide what to do.

This de-duplicates some of the work we were doing twice when an output
was re-configured.

Depends on [1].

[1]: https://github.com/swaywm/wlroots/pull/2315
This commit is contained in:
Simon Ser 2020-08-27 21:46:20 +02:00 committed by Drew DeVault
parent fd216b3a81
commit 2c76923282
2 changed files with 19 additions and 27 deletions

View file

@ -42,9 +42,8 @@ struct sway_output {
struct sway_output_state current;
struct wl_listener destroy;
struct wl_listener commit;
struct wl_listener mode;
struct wl_listener transform;
struct wl_listener scale;
struct wl_listener present;
struct wl_listener damage_destroy;
struct wl_listener damage_frame;