From 2c76923282b12c77e6cb30e3bf233e5878ac86fe Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Thu, 27 Aug 2020 21:46:20 +0200
Subject: 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
---
 include/sway/output.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'include/sway')

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;
-- 
cgit v1.2.3