From ce3940e57a3f92d2179263a4c734748d81d6e75f Mon Sep 17 00:00:00 2001 From: Thierry Lorthiois Date: Tue, 9 Nov 2010 19:32:45 +0000 Subject: [PATCH] fixed : revert change to systray position --- src/systray/systraybar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index c2f437e..539b329 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -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; -- 2.43.0