launcher : fixed icon position

git-svn-id: http://tint2.googlecode.com/svn/trunk@591 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-11-07 17:43:14 +00:00
parent fc5269d610
commit 5d7e211537
3 changed files with 13 additions and 22 deletions

View File

@@ -167,11 +167,10 @@ int resize_systray(void *obj)
void on_change_systray (void *obj)
{
// here, sysbar's position is defined. so we can calculate position of tray icon.
// 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 = panel->area.bg->border.width + panel->area.paddingy + systray.area.bg->border.width + systray.area.paddingy +sysbar->marging/2;
int start = systray.area.posy + 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;
@@ -189,6 +188,7 @@ void on_change_systray (void *obj)
traywin->y = posy;
traywin->x = posx;
//printf("systray %d : %d,%d\n", i, posx, posy);
traywin->width = sysbar->icon_size;
traywin->height = sysbar->icon_size;
if (panel_horizontal) {