aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-25 15:59:00 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-25 15:59:00 +0100
commit26d23810406df9dd7f09df18087618c631e37040 (patch)
treef60d3559229b0523ca3215cbd604dc2db19faaf9
parente370187394c90e5953eb31f18f574df773fd11eb (diff)
swaybar: remove random whitespaces
-rw-r--r--swaybar/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index b6d93f4b..434d7363 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -426,14 +426,14 @@ void render() {
get_text_size(window, &width, &height, "%s", block->full_text);
int textwidth = width;
-
+
if (width < block->min_width) {
width = block->min_width;
}
moved += width + block->separator_block_width;
blockpos = window->width - margin - moved;
-
+
int offset = 0;
if (strncmp(block->align, "left", 5) == 0) {
@@ -503,7 +503,7 @@ void free_status_block(void *item) {
return;
}
struct status_block *sb = (struct status_block*)item;
- if (sb->full_text) {
+ if (sb->full_text) {
free(sb->full_text);
}
if (sb->short_text) {
@@ -722,7 +722,7 @@ void i3json_ensure_free(int min_free) {
len = strlen(i3json_state.buffer);
}
if (i3json_state.bufsize < len+min_free) {
- i3json_state.bufsize += min_free;
+ i3json_state.bufsize += min_free;
if (i3json_state.bufsize > 1024000) {
sway_abort("Status line json too long or malformed.");
}