aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-09-03 15:28:29 +0200
committerFurkan Sahin <furkan-dev@proton.me>2024-09-03 15:28:29 +0200
commit0d2540335c2cfdd71369d2afebf0a590bc6d5baa (patch)
tree01978e65bfd461e37bb4421e33061665be0b9a89 /include
parentb555e7557cfdf32cbfab181278cec87f4f1afeb2 (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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 1dcabc25..990fa506 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -57,7 +57,6 @@ struct sway_output {
struct wl_listener layout_destroy;
struct wl_listener destroy;
- struct wl_listener commit;
struct wl_listener present;
struct wl_listener frame;
struct wl_listener request_state;
@@ -146,4 +145,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