bar: move x,y coordinates to xcb backend

This commit is contained in:
Daniel Eklöf 2019-02-17 19:40:20 +01:00
parent 3d8cb7f17e
commit 0ab772f869
3 changed files with 12 additions and 16 deletions

View file

@ -657,11 +657,6 @@ setup(struct bar *_bar)
}
bar->width = backend->width;
bar->x = backend->monitor->x;
bar->y = backend->monitor->y;
bar->y += bar->location == BAR_TOP
? 0
: backend->monitor->height_px - bar->height_with_border;
if (pipe(backend->pipe_fds) == -1) {
LOG_ERRNO("failed to create pipe");