aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2020-08-27 21:46:20 +0200
committerLibravatar Drew DeVault <sir@cmpwn.com>2020-08-27 13:57:10 -0600
commit2c76923282b12c77e6cb30e3bf233e5878ac86fe (patch)
tree838842a6513072931bde27f852c935382df78ac7 /include/sway/output.h
parentexec: fix validation during config reload (diff)
downloadsway-2c76923282b12c77e6cb30e3bf233e5878ac86fe.tar.gz
sway-2c76923282b12c77e6cb30e3bf233e5878ac86fe.tar.zst
sway-2c76923282b12c77e6cb30e3bf233e5878ac86fe.zip
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/sway/output.h')
-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 {
42 struct sway_output_state current; 42 struct sway_output_state current;
43 43
44 struct wl_listener destroy; 44 struct wl_listener destroy;
45 struct wl_listener commit;
45 struct wl_listener mode; 46 struct wl_listener mode;
46 struct wl_listener transform;
47 struct wl_listener scale;
48 struct wl_listener present; 47 struct wl_listener present;
49 struct wl_listener damage_destroy; 48 struct wl_listener damage_destroy;
50 struct wl_listener damage_frame; 49 struct wl_listener damage_frame;