diff options
author | akokshar@redhat.com <akokshar@redhat.com> | 2017-08-29 17:33:06 +0200 |
---|---|---|
committer | akokshar@redhat.com <akokshar@redhat.com> | 2017-08-29 17:33:06 +0200 |
commit | 39df3aed821d32644780df2875390a259941e353 (patch) | |
tree | 00318aed922c41f114f9b1ae39bcf167929c3bed | |
parent | d873d09f23180414fc0475b3893570a514efb0e0 (diff) |
styling fixes
-rw-r--r-- | swaybar/bar.c | 18 | ||||
-rw-r--r-- | swaybar/render.c | 4 | ||||
-rw-r--r-- | swaybar/status_line.c | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index 89f7c8c1..85cb5270 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c @@ -123,15 +123,15 @@ static void mouse_button_notify(struct window *window, int x, int y, } switch (button) { - case BTN_LEFT: - status_line_mouse_event(&swaybar, x, y, 1); - break; - case BTN_MIDDLE: - status_line_mouse_event(&swaybar, x, y, 2); - break; - case BTN_RIGHT: - status_line_mouse_event(&swaybar, x, y, 3); - break; + case BTN_LEFT: + status_line_mouse_event(&swaybar, x, y, 1); + break; + case BTN_MIDDLE: + status_line_mouse_event(&swaybar, x, y, 2); + break; + case BTN_RIGHT: + status_line_mouse_event(&swaybar, x, y, 3); + break; } #ifdef ENABLE_TRAY diff --git a/swaybar/render.c b/swaybar/render.c index 232d254b..6fc09078 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -94,8 +94,8 @@ static void render_block(struct window *window, struct config *config, struct st double pos = *x; - block->x = (int) pos; - block->width = (int) block_width; + block->x = (int)pos; + block->width = (int)block_width; // render background if (block->background != 0x0) { diff --git a/swaybar/status_line.c b/swaybar/status_line.c index f3bb3013..7da311ac 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c @@ -492,7 +492,7 @@ bool handle_status_line(struct bar *bar) { json_object *click_events; if (json_object_object_get_ex(proto, "click_events", &click_events) - && json_object_get_boolean(click_events) + && json_object_get_boolean(click_events) == true ) { sway_log(L_DEBUG, "Enabling click events."); bar->status->click_events = true; |