commit 5fb98bd00525f5d21eb41322a5530fc3dd957c98
parent 4ce0cf1b53b090a88202dc6ad8ddbfc8dee4e302
Author: Stacy Harper <contact@stacyharper.net>
Date: Wed, 25 Aug 2021 22:41:57 +0200
Do not set scale everyframe
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drw.c b/drw.c
@@ -33,7 +33,6 @@ drwsurf_flip(struct drwsurf *ds) {
wl_callback_add_listener(cb, &frame_listener, (void *)ds);
wl_surface_attach(ds->surf, ds->buf, 0, 0);
- wl_surface_set_buffer_scale(ds->surf, ds->scale);
wl_surface_commit(ds->surf);
}
@@ -130,6 +129,8 @@ setup_buffer(struct drwsurf *drwsurf)
pango_layout_set_font_description(drwsurf->layout, drwsurf->ctx->font_description);
cairo_save(drwsurf->cairo);
+ wl_surface_set_buffer_scale(drwsurf->surf, drwsurf->scale);
+
return 0;
}