all repos — tint2 @ 7fa7bf77c0e39813ab0464b5d3c6b3f03c673c70

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed issue 135

git-svn-id: http://tint2.googlecode.com/svn/trunk@203 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

7fa7bf77c0e39813ab0464b5d3c6b3f03c673c70

parent

145ce16757d7af43bcbd3a51c686dbc51c825a6a

3 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/clock/clock.csrc/clock/clock.c

@@ -187,14 +187,14 @@ if (time_width > date_width) new_width = time_width;

else new_width = date_width; new_width += (2*clock->area.paddingxlr) + (2*clock->area.pix.border.width); + Panel *panel = ((Area*)obj)->panel; + clock->area.posx = panel->area.width - clock->area.width - panel->area.paddingxlr - panel->area.pix.border.width; + if (new_width > clock->area.width || new_width < (clock->area.width-6)) { - Panel *panel = ((Area*)obj)->panel; - // resize clock // we try to limit the number of resize // printf("clock_width %d, new_width %d\n", clock->area.width, new_width); clock->area.width = new_width + 1; - clock->area.posx = panel->area.width - clock->area.width - panel->area.paddingxlr - panel->area.pix.border.width; // resize other objects on panel panel->area.resize = 1;
M src/systray/systraybar.hsrc/systray/systraybar.h

@@ -49,6 +49,7 @@ void resize_systray(void *obj);

// systray protocol +// many tray icon doesn't manage stop/restart of the systray manager int init_net(); void cleanup_net(); void net_message(XClientMessageEvent *e);
M src/tint.csrc/tint.c

@@ -636,7 +636,6 @@ for (l0 = panel->area.list; l0 ; l0 = l0->next)

((Area*)l0->data)->resize = 1; } panel_refresh = 1; - //printf("ConfigureNotify on root width=%d, height=%d\n", server.monitor[0].width, server.monitor[0].height); return; }