]> Dogcows Code - chaz/tint2/commitdiff
fixed issue 135
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 27 Sep 2009 17:50:10 +0000 (17:50 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 27 Sep 2009 17:50:10 +0000 (17:50 +0000)
src/clock/clock.c
src/systray/systraybar.h
src/tint.c

index 72bb61cb3cc158108b951851d10652af61e29997..b7a3966c71f586d75612583425f8fbbe08493564 100644 (file)
@@ -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;
index 46b56187a2c6c205a46a1e9b2585df4273a72e6d..0ee61ed9362018ad38bfaa2a8c7bf68d9e01454f 100644 (file)
@@ -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);
index 8705d949961d25f383fab5bf2de4d8ecaea0abb4..f1de4772a583d21e83efda144ab86a03c91c55ff 100644 (file)
@@ -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;
        }
 
This page took 0.025765 seconds and 4 git commands to generate.