Overview: If systray contains only single one non-square icon (width > height) the icon has wrong position so the only top half of icon is visible (icon shifted to the bottom). The y coordinate is 13 instead of 2 (show frame is 'on'). But when systray contains more icons then position correct. Panel row size is 24, maximum icon size in plugin settings is 22 (default values). Steps to Reproduce: 1) make sure systray contains no icons (unload all programs which add icons to systray and/or add indicator plugin to the panel if necessary) 2) start program which add non-square icon to systray (I've tried sbxkb http://sourceforge.net/projects/staybox/files/sbxkb-0.7.6.tar.gz/download , xxkb http://sourceforge.net/projects/xxkb/files/latest/download with rectangular icons and simple python example http://stackoverflow.com/a/4416367) Actual Results: Icon vertical y position is 13 so the only top half of the icon is visible (see screenshot 'non-squared-icon-position.png' attached). Expected Results: Icon should be vertically aligned to the middle of systray. Build Date & Platform: Reproducible every time on Xubuntu 12.04 with Xfce 4.10 (I have tried ppa xubuntu-dev, building from tarballs and building from git repository). Additional Information: Square icons are not affected.
Can't attach any files, bugzilla says 'The file you are trying to attach is empty, does not exist, or you don't have permission to read it.' but its not true.
Created attachment 4544 Panel log file, contains coordinates.
Created attachment 4545 Python simple gtk statusicon test (I used 21x14 image)
Created attachment 4546 Proposed patch
Max referenced this bugreport in commit 4ab55dd6baed42d8b4440a786fa5d28394721f30 systray: Fix alignment of single non-square items (Bug #9095) https://git.xfce.org/xfce/xfce4-panel/commit?id=4ab55dd6baed42d8b4440a786fa5d28394721f30
Sorry it took so long for anyone to reproduce and test this (even though you attached everything needed for that). Done and fixed!