X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=blobdiff_plain;f=src%2Fsystray%2Fsystraybar.c;h=8a840ce7130a11499a1b058e554c54c1ffbd1200;hp=23d2ab3821d1b58883ed1a0a380dd36a1bea2626;hb=fc22af941cf7b9db65a703e9e697490119c70ec2;hpb=f50e6636fb818a6851c4cfff9ea9cd843b0eba28 diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 23d2ab3..8a840ce 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -532,6 +532,11 @@ void systray_render_icon_now(void* t) // we made also sure, that we always have a 32 bit visual, i.e. we can safely create 32 bit pixmaps here TrayWindow* traywin = t; traywin->render_timeout = 0; + if ( traywin->width == 0 || traywin->height == 0 ) { + // reschedule rendering since the geometry information has not yet been processed (can happen on slow cpu) + systray_render_icon(traywin); + return; + } // good systray icons support 32 bit depth, but some icons are still 24 bit. // We create a heuristic mask for these icons, i.e. we get the rgb value in the top left corner, and