forked from external/yambar
Fix: X11 struts
https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm45643490065584
This commit is contained in:
parent
b562f1310b
commit
39a5493450
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];
|
uint32_t top_pair[2], bottom_pair[2];
|
||||||
|
|
||||||
if (bar->location == BAR_TOP) {
|
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[0] = backend->x;
|
||||||
top_pair[1] = backend->x + bar->width - 1;
|
top_pair[1] = backend->x + bar->width - 1;
|
||||||
|
|
||||||
bottom_strut = 0;
|
bottom_strut = 0;
|
||||||
bottom_pair[0] = bottom_pair[1] = 0;
|
bottom_pair[0] = bottom_pair[1] = 0;
|
||||||
} else {
|
} else {
|
||||||
bottom_strut = screen->height_in_pixels - backend->y;
|
bottom_strut = bar->height_with_border;
|
||||||
bottom_pair[0] = backend->x;
|
bottom_pair[0] = backend->x;
|
||||||
bottom_pair[1] = backend->x + bar->width - 1;
|
bottom_pair[1] = backend->x + bar->width - 1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue