aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-05-16 20:47:03 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-05-17 08:29:14 +1000
commitf0212d66eee61517ab1bb0f8bb68784d50e14c9a (patch)
tree02f3205870487dbedb981a1770a6ec77c8894c15
parentebb0d051db2f73fd13a4e844a51e70f09703372a (diff)
Update marks textures on output scale event
-rw-r--r--sway/desktop/output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 3f680b36..94562052 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -962,10 +962,15 @@ static void handle_transform(struct wl_listener *listener, void *data) {
arrange_output(output->swayc);
}
+static void handle_scale_iterator(struct sway_container *view, void *data) {
+ view_update_marks_textures(view->sway_view);
+}
+
static void handle_scale(struct wl_listener *listener, void *data) {
struct sway_output *output = wl_container_of(listener, output, scale);
arrange_layers(output);
arrange_output(output->swayc);
+ container_descendants(output->swayc, C_VIEW, handle_scale_iterator, NULL);
}
void handle_new_output(struct wl_listener *listener, void *data) {