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
3 files changed,
4 insertions(+),
4 deletions(-)
M
src/clock/clock.c
→
src/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.h
→
src/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.c
→
src/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; }