fixed issue 135
git-svn-id: http://tint2.googlecode.com/svn/trunk@203 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
145ce16757
commit
7fa7bf77c0
3 changed files with 4 additions and 4 deletions
src
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue