diff options
author | 2017-08-31 20:35:03 +0000 | |
---|---|---|
committer | 2017-08-31 20:35:03 +0000 | |
commit | 013df6a8a5b99c873cd08e8b1cd6350def2a0b2c (patch) | |
tree | 4187dee4d31e39deec32cbf2005e4b6b4b910a84 /swaybar/render.c | |
parent | Translate README to portuguese (diff) | |
parent | Merge pull request #1336 from akokshar/master (diff) | |
download | sway-013df6a8a5b99c873cd08e8b1cd6350def2a0b2c.tar.gz sway-013df6a8a5b99c873cd08e8b1cd6350def2a0b2c.tar.zst sway-013df6a8a5b99c873cd08e8b1cd6350def2a0b2c.zip |
Merge branch 'master' into master
Diffstat (limited to 'swaybar/render.c')
-rw-r--r-- | swaybar/render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 6ec47e79..6fc09078 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -94,6 +94,9 @@ static void render_block(struct window *window, struct config *config, struct st | |||
94 | 94 | ||
95 | double pos = *x; | 95 | double pos = *x; |
96 | 96 | ||
97 | block->x = (int)pos; | ||
98 | block->width = (int)block_width; | ||
99 | |||
97 | // render background | 100 | // render background |
98 | if (block->background != 0x0) { | 101 | if (block->background != 0x0) { |
99 | cairo_set_source_u32(window->cairo, block->background); | 102 | cairo_set_source_u32(window->cairo, block->background); |