]> Dogcows Code - chaz/tint2/commitdiff
fixed : revert change to systray position
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 9 Nov 2010 19:32:45 +0000 (19:32 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 9 Nov 2010 19:32:45 +0000 (19:32 +0000)
src/systray/systraybar.c

index c2f437e679d067d3eed61e0684dd720e9da4c30e..539b32985696daba5ba1d186145c1ea8fcd7c7ac 100644 (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;
This page took 0.025617 seconds and 4 git commands to generate.