Improve whitespace handling

This commit is contained in:
Benedikt Heine 2017-11-25 01:38:28 +01:00
parent fc4f0a4238
commit bd8fd8b1d2
8 changed files with 27 additions and 40 deletions

View File

@ -23,7 +23,6 @@
#include "utils.h"
#include "x11/x.h"
/*
* print a human readable representation
* of the given notification to stdout.

View File

@ -215,7 +215,6 @@ char *clean_value(const char *value)
s[strlen(s) - 1] = '\0';
return s;
}
int load_ini_file(FILE *fp)
@ -443,13 +442,11 @@ char *option_get_path(const char *ini_section,
val = cmdline_get_path(cmdline_key, NULL, description);
}
if (val) {
return val;
} else {
return ini_get_path(ini_section, ini_key, def);
}
}
char *option_get_string(const char *ini_section,
@ -464,13 +461,11 @@ char *option_get_string(const char *ini_section,
val = cmdline_get_string(cmdline_key, NULL, description);
}
if (val) {
return val;
} else {
return ini_get_string(ini_section, ini_key, def);
}
}
gint64 option_get_time(const char *ini_section,

View File

@ -164,7 +164,6 @@ void xinerama_update()
XFree(info);
}
void screen_update_fallback()
{
alloc_screen_ar(1);
@ -177,7 +176,6 @@ void screen_update_fallback()
screens[0].dim.w = DisplayWidth(xctx.dpy, screen);
screens[0].dim.h = DisplayHeight(xctx.dpy, screen);
}
/*

View File

@ -118,7 +118,6 @@ static color_t calculate_foreground_color(color_t bg)
return color;
}
static color_t x_get_separator_color(colored_layout *cl, colored_layout *cl_next)
{
switch (settings.sep_color) {
@ -703,7 +702,6 @@ void x_win_draw(void)
cairo_destroy(c);
cairo_surface_destroy(image_surface);
r_free_layouts(layouts);
}
static void x_win_move(int width, int height)
@ -732,7 +730,6 @@ static void x_win_move(int width, int height)
XResizeWindow(xctx.dpy, xctx.win, width, height);
}
xctx.window_dim.x = x;
xctx.window_dim.y = y;
xctx.window_dim.h = height;
@ -1036,7 +1033,6 @@ void x_setup(void)
x_win_setup();
x_cairo_setup();
x_shortcut_grab(&settings.history_ks);
}
static void x_set_wm(Window win)
@ -1210,7 +1206,6 @@ KeySym x_shortcut_string_to_mask(const char *str)
fprintf(stderr, "Warning: Unknown Modifier: %s\n", str);
return 0;
}
}
/*