aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-31 18:59:20 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-05 18:01:43 +1000
commit0b23423c14a1f21c0c61dd6db4e22aa9ec21eadb (patch)
treed166e016b3370869c376e8dd82d5a200e925b28b /sway/desktop/output.c
parentFix mouse_warping (diff)
downloadsway-0b23423c14a1f21c0c61dd6db4e22aa9ec21eadb.tar.gz
sway-0b23423c14a1f21c0c61dd6db4e22aa9ec21eadb.tar.zst
sway-0b23423c14a1f21c0c61dd6db4e22aa9ec21eadb.zip
Update output propertes on mode change
This was previously done when arranging the output, but only needs to be done on mode change.
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 7e9f7b7e..d9c7dbe3 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -505,6 +505,10 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
505 505
506static void handle_mode(struct wl_listener *listener, void *data) { 506static 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);
508 arrange_layers(output); 512 arrange_layers(output);
509 arrange_output(output); 513 arrange_output(output);
510 transaction_commit_dirty(); 514 transaction_commit_dirty();