mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
buffer: remove buffer->cairo
It's more common for cairo_t to have a temporary lifetime and it will prevent accidentally reusing its previous state.
This commit is contained in:
parent
c48324975d
commit
4502d58eec
8 changed files with 39 additions and 22 deletions
|
|
@ -90,7 +90,7 @@ _osd_update(struct server *server)
|
|||
continue;
|
||||
}
|
||||
|
||||
cairo = buffer->cairo;
|
||||
cairo = cairo_create(buffer->surface);
|
||||
|
||||
/* Background */
|
||||
set_cairo_color(cairo, theme->osd_bg_color);
|
||||
|
|
@ -150,6 +150,7 @@ _osd_update(struct server *server)
|
|||
g_object_unref(layout);
|
||||
surface = cairo_get_target(cairo);
|
||||
cairo_surface_flush(surface);
|
||||
cairo_destroy(cairo);
|
||||
|
||||
if (!output->workspace_osd) {
|
||||
output->workspace_osd = wlr_scene_buffer_create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue