diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-01 08:45:19 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-05 18:01:43 +1000 |
commit | 93ff7879f16c5e31c18a37e87b23ee5dcb5a584b (patch) | |
tree | 594a58124652ebdddc3076dcb060774e194e2069 /sway/desktop/output.c | |
parent | Fix another focus bug when moving into output (diff) | |
download | sway-93ff7879f16c5e31c18a37e87b23ee5dcb5a584b.tar.gz sway-93ff7879f16c5e31c18a37e87b23ee5dcb5a584b.tar.zst sway-93ff7879f16c5e31c18a37e87b23ee5dcb5a584b.zip |
Fix output position issue
Looks like the output dimensions need to be set when arranging rather
than when a mode is set.
Fixes an issue with position of fullscreen views.
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index d9c7dbe3..7e9f7b7e 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -505,10 +505,6 @@ static void handle_destroy(struct wl_listener *listener, void *data) { | |||
505 | 505 | ||
506 | static void handle_mode(struct wl_listener *listener, void *data) { | 506 | static void handle_mode(struct wl_listener *listener, void *data) { |
507 | struct sway_output *output = wl_container_of(listener, output, mode); | 507 | struct sway_output *output = wl_container_of(listener, output, mode); |
508 | output->lx = output->wlr_output->lx; | ||
509 | output->ly = output->wlr_output->ly; | ||
510 | wlr_output_effective_resolution(output->wlr_output, | ||
511 | &output->width, &output->height); | ||
512 | arrange_layers(output); | 508 | arrange_layers(output); |
513 | arrange_output(output); | 509 | arrange_output(output); |
514 | transaction_commit_dirty(); | 510 | transaction_commit_dirty(); |