Improve whitespace handling
This commit is contained in:
parent
fc4f0a4238
commit
bd8fd8b1d2
@ -23,7 +23,6 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "x11/x.h"
|
#include "x11/x.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* print a human readable representation
|
* print a human readable representation
|
||||||
* of the given notification to stdout.
|
* of the given notification to stdout.
|
||||||
|
@ -215,7 +215,6 @@ char *clean_value(const char *value)
|
|||||||
s[strlen(s) - 1] = '\0';
|
s[strlen(s) - 1] = '\0';
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int load_ini_file(FILE *fp)
|
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);
|
val = cmdline_get_path(cmdline_key, NULL, description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (val) {
|
if (val) {
|
||||||
return val;
|
return val;
|
||||||
} else {
|
} else {
|
||||||
return ini_get_path(ini_section, ini_key, def);
|
return ini_get_path(ini_section, ini_key, def);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char *option_get_string(const char *ini_section,
|
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);
|
val = cmdline_get_string(cmdline_key, NULL, description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (val) {
|
if (val) {
|
||||||
return val;
|
return val;
|
||||||
} else {
|
} else {
|
||||||
return ini_get_string(ini_section, ini_key, def);
|
return ini_get_string(ini_section, ini_key, def);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gint64 option_get_time(const char *ini_section,
|
gint64 option_get_time(const char *ini_section,
|
||||||
|
@ -164,7 +164,6 @@ void xinerama_update()
|
|||||||
XFree(info);
|
XFree(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void screen_update_fallback()
|
void screen_update_fallback()
|
||||||
{
|
{
|
||||||
alloc_screen_ar(1);
|
alloc_screen_ar(1);
|
||||||
@ -177,7 +176,6 @@ void screen_update_fallback()
|
|||||||
|
|
||||||
screens[0].dim.w = DisplayWidth(xctx.dpy, screen);
|
screens[0].dim.w = DisplayWidth(xctx.dpy, screen);
|
||||||
screens[0].dim.h = DisplayHeight(xctx.dpy, screen);
|
screens[0].dim.h = DisplayHeight(xctx.dpy, screen);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -118,7 +118,6 @@ static color_t calculate_foreground_color(color_t bg)
|
|||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static color_t x_get_separator_color(colored_layout *cl, colored_layout *cl_next)
|
static color_t x_get_separator_color(colored_layout *cl, colored_layout *cl_next)
|
||||||
{
|
{
|
||||||
switch (settings.sep_color) {
|
switch (settings.sep_color) {
|
||||||
@ -703,7 +702,6 @@ void x_win_draw(void)
|
|||||||
cairo_destroy(c);
|
cairo_destroy(c);
|
||||||
cairo_surface_destroy(image_surface);
|
cairo_surface_destroy(image_surface);
|
||||||
r_free_layouts(layouts);
|
r_free_layouts(layouts);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void x_win_move(int width, int height)
|
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);
|
XResizeWindow(xctx.dpy, xctx.win, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
xctx.window_dim.x = x;
|
xctx.window_dim.x = x;
|
||||||
xctx.window_dim.y = y;
|
xctx.window_dim.y = y;
|
||||||
xctx.window_dim.h = height;
|
xctx.window_dim.h = height;
|
||||||
@ -1036,7 +1033,6 @@ void x_setup(void)
|
|||||||
x_win_setup();
|
x_win_setup();
|
||||||
x_cairo_setup();
|
x_cairo_setup();
|
||||||
x_shortcut_grab(&settings.history_ks);
|
x_shortcut_grab(&settings.history_ks);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void x_set_wm(Window win)
|
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);
|
fprintf(stderr, "Warning: Unknown Modifier: %s\n", str);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user