fixed : revert change to systray position

git-svn-id: http://tint2.googlecode.com/svn/trunk@595 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77 2010-11-09 19:32:45 +00:00
parent 5d7e211537
commit a7a2ae337a

View file

@ -169,8 +169,9 @@ void on_change_systray (void *obj)
{
// here, systray.area.posx/posy are defined by rendering engine. so we can calculate position of tray icon.
Systraybar *sysbar = obj;
Panel *panel = sysbar->area.panel;
int i, posx, posy;
int start = systray.area.posy + systray.area.bg->border.width + systray.area.paddingy + sysbar->marging/2;
int start = panel->area.bg->border.width + panel->area.paddingy + systray.area.bg->border.width + systray.area.paddingy + sysbar->marging/2;
if (panel_horizontal) {
posy = start;
posx = systray.area.posx + systray.area.bg->border.width + systray.area.paddingxlr;