fix bar Y position in case of multi-monitor setups with mixed resolutions

This commit is contained in:
fraktal 2024-09-04 15:33:25 +02:00
parent 700bf5b28c
commit 1b2dee55ef

View file

@ -101,7 +101,7 @@ setup(struct bar *_bar)
backend->x = mon->x; backend->x = mon->x;
backend->y = mon->y; backend->y = mon->y;
bar->width = mon->width; bar->width = mon->width;
backend->y += bar->location == BAR_TOP ? 0 : screen->height_in_pixels - bar->height_with_border; backend->y += bar->location == BAR_TOP ? 0 : mon->height - bar->height_with_border;
found_monitor = true; found_monitor = true;