diff options
author | akokshar@redhat.com <akokshar@redhat.com> | 2017-08-29 11:19:43 +0200 |
---|---|---|
committer | akokshar@redhat.com <akokshar@redhat.com> | 2017-08-29 11:19:43 +0200 |
commit | 65022e1cbf0ccf8764dcef7e2a738feb3331deeb (patch) | |
tree | 2b08e4aa1a186ffe3cd990887ad18322756bbfc6 /swaybar/render.c | |
parent | Merge pull request #1247 from clarcharr/master (diff) | |
download | sway-65022e1cbf0ccf8764dcef7e2a738feb3331deeb.tar.gz sway-65022e1cbf0ccf8764dcef7e2a738feb3331deeb.tar.zst sway-65022e1cbf0ccf8764dcef7e2a738feb3331deeb.zip |
click_events as documented at https://i3wm.org/docs/i3bar-protocol.html
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..232d254b 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); |