/**************************************************************************
* Tint2 : systraybar
*
-* Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
+* Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr) from Omega distribution
* based on 'docker-1.5' from Ben Jansens.
*
* This program is free software; you can redistribute it and/or
{
systray.area.parent = p;
systray.area.panel = p;
-
+ if (systray.area.bg == 0)
+ systray.area.bg = &g_array_index(backgrounds, Background, 0);
+
GSList *l;
int count = 0;
for (l = systray.list_icons; l ; l = l->next) {
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 = 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;
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) {