From: Thierry Lorthiois Date: Sun, 27 Sep 2009 17:50:10 +0000 (+0000) Subject: fixed issue 135 X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=f3f6ab62e3242c62e129d56b2a44c19c09303a16;p=chaz%2Ftint2 fixed issue 135 --- diff --git a/src/clock/clock.c b/src/clock/clock.c index 72bb61c..b7a3966 100644 --- a/src/clock/clock.c +++ b/src/clock/clock.c @@ -187,14 +187,14 @@ void resize_clock (void *obj) else new_width = date_width; new_width += (2*clock->area.paddingxlr) + (2*clock->area.pix.border.width); - if (new_width > clock->area.width || new_width < (clock->area.width-6)) { - Panel *panel = ((Area*)obj)->panel; + 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)) { // 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; diff --git a/src/systray/systraybar.h b/src/systray/systraybar.h index 46b5618..0ee61ed 100644 --- a/src/systray/systraybar.h +++ b/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); diff --git a/src/tint.c b/src/tint.c index 8705d94..f1de477 100644 --- a/src/tint.c +++ b/src/tint.c @@ -636,7 +636,6 @@ void event_configure_notify (Window win) ((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; }