mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
bar/xcb: ignore non-zero border margins
This commit is contained in:
parent
0ab772f869
commit
28d39f3aec
3 changed files with 14 additions and 5 deletions
|
@ -656,6 +656,7 @@ setup(struct bar *_bar)
|
|||
return false;
|
||||
}
|
||||
|
||||
assert(backend->width <= backend->monitor->width_px);
|
||||
bar->width = backend->width;
|
||||
|
||||
if (pipe(backend->pipe_fds) == -1) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue