X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=071ecc4d7b262392bf25890e4965b3a6f3ede687;hb=4b73574406e24df84e909014926e56ab1e5c7934;hp=93785459147d2c2b28cf8445e37865ac94792aa2;hpb=37a5b59d7bf51a201981c486b800b3b8d57e9b9c;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 93785459..071ecc4d 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -4175,30 +4175,3 @@ gboolean client_has_group_siblings(ObClient *self) { return self->group && self->group->members->next; } - -ObClientIcon *client_thumbnail(ObClient *self, gint wantw, gint wanth) -{ - ObClientIcon *ret; - RrPixel32 *data; - gint w, h; - - if (!self->frame->pixmap) return NULL; - if (!RrPixmapToRGBA(ob_rr_inst, self->frame->pixmap, None, &w, &h, &data)) - return NULL; - - /* resize the thumbnail (within aspect ratio) to the given sizes */ - - ret = g_new(ObClientIcon, 1); - ret->data = data; - ret->width = w; - ret->height = h; - return ret; -} - -void clienticon_free(ObClientIcon *ci) -{ - if (ci) { - g_free(ci->data); - g_free(ci); - } -}