forked from external/yambar
Merge branch 'x11-struts'
This commit is contained in:
commit
f71e7c2905
1 changed files with 2 additions and 2 deletions
|
@ -215,14 +215,14 @@ setup(struct bar *_bar)
|
|||
uint32_t top_pair[2], bottom_pair[2];
|
||||
|
||||
if (bar->location == BAR_TOP) {
|
||||
top_strut = backend->y + bar->height_with_border;
|
||||
top_strut = bar->height_with_border;
|
||||
top_pair[0] = backend->x;
|
||||
top_pair[1] = backend->x + bar->width - 1;
|
||||
|
||||
bottom_strut = 0;
|
||||
bottom_pair[0] = bottom_pair[1] = 0;
|
||||
} else {
|
||||
bottom_strut = screen->height_in_pixels - backend->y;
|
||||
bottom_strut = bar->height_with_border;
|
||||
bottom_pair[0] = backend->x;
|
||||
bottom_pair[1] = backend->x + bar->width - 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue