diff options
author | Connor E <38229097+c-edw@users.noreply.github.com> | 2019-01-22 08:23:38 +0000 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-22 03:32:51 -0500 |
commit | 39cf4770906989ddef52cd6352d3799f9d7e9e93 (patch) | |
tree | 1492bf335c912999a5c0ecd9acb98db290bed4a7 /swaynag/render.c | |
parent | Merge pull request #3485 from mstoeckl/minimize-deps (diff) | |
download | sway-39cf4770906989ddef52cd6352d3799f9d7e9e93.tar.gz sway-39cf4770906989ddef52cd6352d3799f9d7e9e93.tar.zst sway-39cf4770906989ddef52cd6352d3799f9d7e9e93.zip |
swaynag: Small graphical fix, add offset of +1 to X/Y.
Diffstat (limited to 'swaynag/render.c')
-rw-r--r-- | swaynag/render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaynag/render.c b/swaynag/render.c index 661e27a1..c9f4ef1d 100644 --- a/swaynag/render.c +++ b/swaynag/render.c | |||
@@ -191,8 +191,8 @@ static uint32_t render_button(cairo_t *cairo, struct swaynag *swaynag, | |||
191 | return ideal_surface_height; | 191 | return ideal_surface_height; |
192 | } | 192 | } |
193 | 193 | ||
194 | button->x = *x - border - text_width - padding * 2; | 194 | button->x = *x - border - text_width - padding * 2 + 1; |
195 | button->y = (int)(ideal_height - text_height) / 2 - padding; | 195 | button->y = (int)(ideal_height - text_height) / 2 - padding + 1; |
196 | button->width = text_width + padding * 2; | 196 | button->width = text_width + padding * 2; |
197 | button->height = text_height + padding * 2; | 197 | button->height = text_height + padding * 2; |
198 | 198 | ||