summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-07-16 20:58:14 +0200
committerFurkan Sahin <furkan-dev@proton.me>2019-07-16 20:58:14 +0200
commit34b7c7c0ce510e7fae4ee602dca1c4efdae52ec3 (patch)
tree0942445e2aad0148e17ea85f92f4664a7ff4a04d /include
parentdc8695dcb6fb432df5638eada158fa55dffd2599 (diff)
Update output manager on layout change
The output manager config was not properly updated if the position of the output got changed.
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h2
-rw-r--r--include/sway/server.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 3d430ea2..a5a2f29e 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -154,6 +154,8 @@ void scale_box(struct wlr_box *box, float scale);
enum wlr_direction opposite_direction(enum wlr_direction d);
+void handle_output_layout_change(struct wl_listener *listener, void *data);
+
void handle_output_manager_apply(struct wl_listener *listener, void *data);
void handle_output_manager_test(struct wl_listener *listener, void *data);
diff --git a/include/sway/server.h b/include/sway/server.h
index fd613bb6..21661685 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -34,6 +34,7 @@ struct sway_server {
struct sway_input_manager *input;
struct wl_listener new_output;
+ struct wl_listener output_layout_change;
struct wlr_idle *idle;
struct sway_idle_inhibit_manager_v1 *idle_inhibit_manager_v1;