all repos — tint2 @ e022ddda6c5bf10ab45579f7ac5b45c9c41a59cb

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

panel_items : fixed vertical panel

git-svn-id: http://tint2.googlecode.com/svn/trunk@555 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

e022ddda6c5bf10ab45579f7ac5b45c9c41a59cb

parent

d44628b16ce22ef3d91b80b3b602a0f582b86a9f

1 files changed, 18 insertions(+), 6 deletions(-)

jump to
M src/util/area.csrc/util/area.c

@@ -135,16 +135,28 @@ for (l = a->list; l ; l = l->next) {

Area *child = ((Area*)l->data); i++; - if (pos != child->posx) { - // pos changed => redraw - child->posx = pos; - child->redraw = 1; + if (panel_horizontal) { + if (pos != child->posx) { + // pos changed => redraw + child->posx = pos; + child->redraw = 1; + } } - printf("level %d, object %d, pos %d\n", level, i, pos); + else { + if (pos != child->posy) { + // pos changed => redraw + child->posy = pos; + child->redraw = 1; + } + } + //printf("level %d, object %d, pos %d\n", level, i, pos); size_by_layout(child, pos, level+1); - pos += child->width + a->paddingx; + if (panel_horizontal) + pos += child->width + a->paddingx; + else + pos += child->height + a->paddingx; } }