aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 141edb49..302f9fda 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -859,6 +859,12 @@ static void update_textures(struct sway_container *con, void *data) {
859 container_update_marks_textures(con); 859 container_update_marks_textures(con);
860} 860}
861 861
862static void update_output_scale_iterator(struct sway_output *output,
863 struct sway_view *view, struct wlr_surface *surface,
864 struct wlr_box *box, void *user_data) {
865 surface_update_outputs(surface);
866}
867
862static void handle_commit(struct wl_listener *listener, void *data) { 868static void handle_commit(struct wl_listener *listener, void *data) {
863 struct sway_output *output = wl_container_of(listener, output, commit); 869 struct sway_output *output = wl_container_of(listener, output, commit);
864 struct wlr_output_event_commit *event = data; 870 struct wlr_output_event_commit *event = data;
@@ -873,6 +879,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
873 879
874 if (event->committed & WLR_OUTPUT_STATE_SCALE) { 880 if (event->committed & WLR_OUTPUT_STATE_SCALE) {
875 output_for_each_container(output, update_textures, NULL); 881 output_for_each_container(output, update_textures, NULL);
882 output_for_each_surface(output, update_output_scale_iterator, NULL);
876 } 883 }
877 884
878 if (event->committed & (WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_SCALE)) { 885 if (event->committed & (WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_SCALE)) {