X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fpopup.c;h=770f33d0ac73047d1a04d7f0b174a6892a766e02;hb=4c7cc1cfa64bf5722f059eae0528d510c2ae636f;hp=15d1bf52bed291cb342b3ffee40263003e407468;hpb=512d93afcc3e7dd5caa42cdb69508964c6338f3d;p=chaz%2Fopenbox diff --git a/openbox/popup.c b/openbox/popup.c index 15d1bf52..770f33d0 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -367,16 +367,17 @@ void icon_popup_free(ObIconPopup *self) } void icon_popup_delay_show(ObIconPopup *self, gulong usec, - gchar *text, const ObClientIcon *icon) + gchar *text, RrImage *icon) { if (icon) { - self->a_icon->texture[0].type = RR_TEXTURE_RGBA; - self->a_icon->texture[0].data.rgba.width = icon->width; - self->a_icon->texture[0].data.rgba.height = icon->height; - self->a_icon->texture[0].data.rgba.alpha = 0xff; - self->a_icon->texture[0].data.rgba.data = icon->data; - } else + RrAppearanceClearTextures(self->a_icon); + self->a_icon->texture[0].type = RR_TEXTURE_IMAGE; + self->a_icon->texture[0].data.image.alpha = 0xff; + self->a_icon->texture[0].data.image.image = icon; + } else { + RrAppearanceClearTextures(self->a_icon); self->a_icon->texture[0].type = RR_TEXTURE_NONE; + } popup_delay_show(self->popup, usec, text); }