mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-11-17 07:48:28 +01:00
swaynag: Small graphical fix, add offset of +1 to X/Y.
This commit is contained in:
parent
f493fb526d
commit
39cf477090
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue