Merge branch 'x11-struts'

This commit is contained in:
Daniel Eklöf 2021-12-11 12:32:09 +01:00
commit f71e7c2905
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;