Taskbar: add option to redistribute size in multi-desktop mode (useful especially when the taskbar is getting full on one desktop)
git-svn-id: http://tint2.googlecode.com/svn/trunk@673 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
88e0e4fed8
commit
4e76c2bb5d
@@ -82,11 +82,15 @@ void init_rendering(void *obj, int pos)
|
||||
if (panel_horizontal) {
|
||||
child->posy = pos + a->bg->border.width + a->paddingy;
|
||||
child->height = a->height - (2 * (a->bg->border.width + a->paddingy));
|
||||
if (child->_on_change_layout)
|
||||
child->_on_change_layout(child);
|
||||
init_rendering(child, child->posy);
|
||||
}
|
||||
else {
|
||||
child->posx = pos + a->bg->border.width + a->paddingy;
|
||||
child->width = a->width - (2 * (a->bg->border.width + a->paddingy));
|
||||
if (child->_on_change_layout)
|
||||
child->_on_change_layout(child);
|
||||
init_rendering(child, child->posx);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user