mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
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:
parent
fd216b3a81
commit
2c76923282
2 changed files with 19 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue