diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-30 17:45:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 17:45:43 -0500 |
commit | 82d6afc91d270f3761588b54a46b7f8fbbacaa3f (patch) | |
tree | df50d6f095cbeeb5256527245c5e1adeb51b6860 /swaybar/render.c | |
parent | Merge pull request #1247 from clarcharr/master (diff) | |
parent | styling fixes (diff) | |
download | sway-82d6afc91d270f3761588b54a46b7f8fbbacaa3f.tar.gz sway-82d6afc91d270f3761588b54a46b7f8fbbacaa3f.tar.zst sway-82d6afc91d270f3761588b54a46b7f8fbbacaa3f.zip |
Merge pull request #1336 from akokshar/master
click_events
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); |