aboutsummaryrefslogtreecommitdiff
path: root/swaybar/render.c
diff options
context:
space:
mode:
authorEmerson Ferreira <12075874+nuskorpios@users.noreply.github.com>2017-08-31 20:35:03 +0000
committerGitHub <noreply@github.com>2017-08-31 20:35:03 +0000
commit013df6a8a5b99c873cd08e8b1cd6350def2a0b2c (patch)
tree4187dee4d31e39deec32cbf2005e4b6b4b910a84 /swaybar/render.c
parentbbfe55f36d47d369941cd2f249e9057d635e2476 (diff)
parent82d6afc91d270f3761588b54a46b7f8fbbacaa3f (diff)
Merge branch 'master' into master
Diffstat (limited to 'swaybar/render.c')
-rw-r--r--swaybar/render.c3
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
double pos = *x;
+ block->x = (int)pos;
+ block->width = (int)block_width;
+
// render background
if (block->background != 0x0) {
cairo_set_source_u32(window->cairo, block->background);