mirror of
https://github.com/brl/mutter.git
synced 2025-01-24 02:19:15 +00:00
iconcache: Fix a dumb thinko
This is an xlib surface, not an image surface.
This commit is contained in:
parent
9a99a80710
commit
7966f00a18
@ -349,8 +349,8 @@ try_pixmap_and_mask (MetaDisplay *display,
|
|||||||
|
|
||||||
masked = cairo_surface_create_similar_image (icon,
|
masked = cairo_surface_create_similar_image (icon,
|
||||||
CAIRO_FORMAT_ARGB32,
|
CAIRO_FORMAT_ARGB32,
|
||||||
cairo_image_surface_get_width (icon),
|
cairo_xlib_surface_get_width (icon),
|
||||||
cairo_image_surface_get_height (icon));
|
cairo_xlib_surface_get_height (icon));
|
||||||
cr = cairo_create (masked);
|
cr = cairo_create (masked);
|
||||||
|
|
||||||
cairo_set_source_surface (cr, icon, 0, 0);
|
cairo_set_source_surface (cr, icon, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user