sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 0b23423c14a1f21c0c61dd6db4e22aa9ec21eadb
parent 2aa6afae542b4cc25b48510e46abb82f85aca518
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Fri, 31 Aug 2018 18:59:20 +1000

Update output propertes on mode change

This was previously done when arranging the output, but only needs to be
done on mode change.

Diffstat:
Msway/desktop/output.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -505,6 +505,10 @@ static void handle_destroy(struct wl_listener *listener, void *data) { static void handle_mode(struct wl_listener *listener, void *data) { struct sway_output *output = wl_container_of(listener, output, mode); + output->lx = output->wlr_output->lx; + output->ly = output->wlr_output->ly; + wlr_output_effective_resolution(output->wlr_output, + &output->width, &output->height); arrange_layers(output); arrange_output(output); transaction_commit_dirty();