diff --git a/src/shell-app.c b/src/shell-app.c index 090c6d3d2..dfa7fe757 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -218,10 +218,17 @@ window_backed_app_get_icon (ShellApp *app, if (meta_window_get_client_type (window) == META_WINDOW_CLIENT_TYPE_X11) { - widget = st_texture_cache_bind_cairo_surface_property (st_texture_cache_get_default (), - G_OBJECT (window), - "icon", - scaled_size); + StWidget *texture_actor; + + texture_actor = + st_texture_cache_bind_cairo_surface_property (st_texture_cache_get_default (), + G_OBJECT (window), + "icon", + scaled_size); + + widget = g_object_new (ST_TYPE_BIN, + "child", texture_actor, + NULL); } else {