X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpanel.c;h=cea2923ff834ab8e8b4f3619156ff7672d98364e;hb=87acd48b92031b378887ea8b7ea9fa54aea8fa25;hp=b99ffa56e576cb078c9cbfd440646615f8addc5e;hpb=857a47544272e432112157dc55694faf079b8c77;p=chaz%2Ftint2 diff --git a/src/panel.c b/src/panel.c index b99ffa5..cea2923 100644 --- a/src/panel.c +++ b/src/panel.c @@ -182,8 +182,9 @@ void init_panel() if (panel_items_order[k] == 'B') init_battery_panel(p); #endif - if (panel_items_order[k] == 'S') { + if (panel_items_order[k] == 'S' && i==0) { // TODO : check systray is only on 1 panel + // at the moment only on panel1[0] allowed init_systray_panel(p); refresh_systray = 1; } @@ -397,8 +398,9 @@ void set_panel_items_order(Panel *p) if (panel_items_order[k] == 'B') p->area.list = g_slist_append(p->area.list, &p->battery); #endif - if (panel_items_order[k] == 'S') { + if (panel_items_order[k] == 'S' && p == panel1) { // TODO : check systray is only on 1 panel + // at the moment only on panel1[0] allowed p->area.list = g_slist_append(p->area.list, &systray); } if (panel_items_order[k] == 'C')