aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2024-09-03 15:28:29 +0200
committerSimon Ser <contact@emersion.fr>2024-09-21 16:16:56 +0200
commit2f1db190c65b8c495ac00db2593f6776635574e7 (patch)
treea88a29912cbd14a25cd038c63949b4c2a9f6858a /include
parent307ab531c0091ad7efb62dd299e31fd2ddf36074 (diff)
desktop/output: Do not use commit listener to arrange
The reasoning for using a commit handler is to ensure that all paths for output changes are correctly handled. With the centralized modeset infrastructure in place, we can move the logic there. This allows us to be smarter and avoid extraneous arranges, output manager updates and transaction commits. The side-effect is a minor duplication for the special-case request_state, but the shared path will be relied upon further in future commits to justify this duplication. (cherry picked from commit b83e5aaa546792336ecc60d2e61708f3cd6b1f5d)
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 7e2d5892..a9e697d8 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -149,4 +149,6 @@ void handle_output_power_manager_set_mode(struct wl_listener *listener,
struct sway_output_non_desktop *output_non_desktop_create(struct wlr_output *wlr_output);
+void update_output_manager_config(struct sway_server *server);
+
#endif