summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlay-plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/overlay-plugin.c b/overlay-plugin.c
index 8b8353c..f0a5932 100644
--- a/overlay-plugin.c
+++ b/overlay-plugin.c
@@ -165,7 +165,9 @@ center_on_output(struct overlay *overlay, int32_t width, int32_t height)
surface->geometry.y = output->y + (output->height - height) / 2;
surface->geometry.width = width;
surface->geometry.height = height;
- surface->geometry.dirty = 1;
+
+ weston_surface_geometry_dirty(surface);
+
}
static void