fixed resize_clock() and snapshot
git-svn-id: http://tint2.googlecode.com/svn/trunk@405 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -258,8 +258,6 @@ void resize_clock (void *obj)
|
||||
new_width += (2*clock->area.paddingxlr) + (2*clock->area.bg->border.width);
|
||||
|
||||
Panel *panel = ((Area*)obj)->panel;
|
||||
clock->area.posx = panel->area.width - clock->area.width - panel->area.paddingxlr - panel->area.bg->border.width;
|
||||
|
||||
if (new_width > clock->area.width || new_width < (clock->area.width-6)) {
|
||||
// resize clock
|
||||
// we try to limit the number of resize
|
||||
@@ -274,6 +272,8 @@ void resize_clock (void *obj)
|
||||
systray.area.resize = 1;
|
||||
panel_refresh = 1;
|
||||
}
|
||||
clock->area.posx = panel->area.width - clock->area.width - panel->area.paddingxlr - panel->area.bg->border.width;
|
||||
|
||||
|
||||
g_object_unref (layout);
|
||||
cairo_destroy (c);
|
||||
|
||||
Reference in New Issue
Block a user