aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-08-27 21:46:20 +0200
committerDrew DeVault <sir@cmpwn.com>2020-08-27 13:57:10 -0600
commit2c76923282b12c77e6cb30e3bf233e5878ac86fe (patch)
tree838842a6513072931bde27f852c935382df78ac7 /include
parentfd216b3a81129f15036755bc6f383c7c261291a5 (diff)
downloadsway-2c76923282b12c77e6cb30e3bf233e5878ac86fe.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index f27f6344..16451d81 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -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;