diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-29 12:19:20 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-29 22:11:08 -0400 |
commit | a76829f3756d3df22fe46e6688374497de29c2e1 (patch) | |
tree | 2dc57796bf9975dacd3de8913cfe97d0c8fa981d /sway/desktop/output.c | |
parent | Respect user bar height preference (diff) | |
download | sway-a76829f3756d3df22fe46e6688374497de29c2e1.tar.gz sway-a76829f3756d3df22fe46e6688374497de29c2e1.tar.zst sway-a76829f3756d3df22fe46e6688374497de29c2e1.zip |
Some layer shell fixes
Based on the corresponding rootston changes
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index b8253ace..30b23a18 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -268,6 +268,12 @@ static void handle_output_mode(struct wl_listener *listener, void *data) { | |||
268 | arrange_windows(output->swayc, -1, -1); | 268 | arrange_windows(output->swayc, -1, -1); |
269 | } | 269 | } |
270 | 270 | ||
271 | static void handle_output_transform(struct wl_listener *listener, void *data) { | ||
272 | struct sway_output *output = wl_container_of(listener, output, transform); | ||
273 | arrange_layers(output); | ||
274 | arrange_windows(output->swayc, -1, -1); | ||
275 | } | ||
276 | |||
271 | void handle_new_output(struct wl_listener *listener, void *data) { | 277 | void handle_new_output(struct wl_listener *listener, void *data) { |
272 | struct sway_server *server = wl_container_of(listener, server, new_output); | 278 | struct sway_server *server = wl_container_of(listener, server, new_output); |
273 | struct wlr_output *wlr_output = data; | 279 | struct wlr_output *wlr_output = data; |
@@ -306,6 +312,8 @@ void handle_new_output(struct wl_listener *listener, void *data) { | |||
306 | output->destroy.notify = handle_output_destroy; | 312 | output->destroy.notify = handle_output_destroy; |
307 | wl_signal_add(&wlr_output->events.mode, &output->mode); | 313 | wl_signal_add(&wlr_output->events.mode, &output->mode); |
308 | output->mode.notify = handle_output_mode; | 314 | output->mode.notify = handle_output_mode; |
315 | wl_signal_add(&wlr_output->events.transform, &output->transform); | ||
316 | output->transform.notify = handle_output_transform; | ||
309 | 317 | ||
310 | arrange_layers(output); | 318 | arrange_layers(output); |
311 | arrange_windows(&root_container, -1, -1); | 319 | arrange_windows(&root_container, -1, -1); |