bar/xcb: ignore non-zero border margins

This commit is contained in:
Daniel Eklöf 2019-02-17 19:45:26 +01:00
parent 0ab772f869
commit 28d39f3aec
3 changed files with 14 additions and 5 deletions

View file

@ -46,6 +46,14 @@ setup(struct bar *_bar)
struct private *bar = _bar->private;
struct xcb_backend *backend = bar->backend.data;
if (bar->border.left_margin != 0 ||
bar->border.right_margin != 0 ||
bar->border.top_margin != 0 ||
bar->border.bottom_margin)
{
LOG_WARN("non-zero border margins ignored in X11 backend");
}
/* TODO: a lot of this (up to mapping the window) could be done in bar_new() */
xcb_generic_error_t *e;