Tested with 'workrave'. xembedsniproxy get a tray icon image with size 200x200 and wide trasnparent border, the real 'workrave' icon is centered in this large Qimage and after set icon of statusitem, it's almost invisible. Here is a patch to: 1, find the non-transparent rect of QImage. 2, copy it and draw it to a foursquare/transparent QImage. 3, set the new QImage as statusitem icon. It may affect all tray's icon, since even normal/correct icon may have a minor 'transparent border', after this process, it will be zoomed in a little, but I think it is acceptable. Or We can create a larger foursquare Qimage and leave minor transparent borders there when draw image on it. Reproducible: Always
Created attachment 95749 [details] Patch
Created attachment 95753 [details] Updated patch
Thanks Sorry it's taken me so long to see your patches. It's pretty poor on my side. http://git.reviewboard.kde.org is the better place for patches, they stay at the top of my TODO list better. Code-wise your patches seem fine: - make findImageTransparentBounding const - fix typo in comment - + painter.drawImage((ximage.width() - ximage.height())/2, 0, ximage); should be height - width Though I don't like how potentially slow it's going to be if we have an icon in the tray animating at 60fps We *should* be resizing the window when we get it (see line ~160). Before merging this, I'd like to see why the resize hasn't worked. Are we just grabbing the image too early? Does the client change itself back?
*** Bug 356497 has been marked as a duplicate of this bug. ***
any news here? I think I am seeing this bug with the gtk application "liferea".
Workwave tray icons are ok Liferea tray icon isn't displayed - possibly due to not installed some opt dependency
Workrave is working fine. Probably it was fixed by other change and this patch is not needed anymore. Alexander Mentyu, Liferea is working fine for me. Please fill separate bug report if you still experience problems with it.