commit 39cf4770906989ddef52cd6352d3799f9d7e9e93 parent f493fb526d3aabb4e756409a3a69e304759f4201 Author: Connor E <38229097+c-edw@users.noreply.github.com> Date: Tue, 22 Jan 2019 08:23:38 +0000 swaynag: Small graphical fix, add offset of +1 to X/Y. Diffstat:
| M | swaynag/render.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/swaynag/render.c b/swaynag/render.c @@ -191,8 +191,8 @@ static uint32_t render_button(cairo_t *cairo, struct swaynag *swaynag, return ideal_surface_height; } - button->x = *x - border - text_width - padding * 2; - button->y = (int)(ideal_height - text_height) / 2 - padding; + button->x = *x - border - text_width - padding * 2 + 1; + button->y = (int)(ideal_height - text_height) / 2 - padding + 1; button->width = text_width + padding * 2; button->height = text_height + padding * 2;