Use stdlibs boolean macros rather than Xlibs
'True' and 'False' are defined in Xlib.h Since we use stdbool boolean 'true' and 'false' definitions in several places, it's best not to mix boolean macros. So in the sake of consistency switch to using the stdbool macros project-wide.
This commit is contained in:
parent
de20697a69
commit
345a821d86
24
config.def.h
24
config.def.h
@ -17,19 +17,19 @@ unsigned int transparency = 0; /* transparency */
|
|||||||
char *geom = "0x0"; /* geometry */
|
char *geom = "0x0"; /* geometry */
|
||||||
char *title = "Dunst"; /* the title of dunst notification windows */
|
char *title = "Dunst"; /* the title of dunst notification windows */
|
||||||
char *class = "Dunst"; /* the class of dunst notification windows */
|
char *class = "Dunst"; /* the class of dunst notification windows */
|
||||||
int shrink = False; /* shrinking */
|
int shrink = false; /* shrinking */
|
||||||
int sort = True; /* sort messages by urgency */
|
int sort = true; /* sort messages by urgency */
|
||||||
int indicate_hidden = True; /* show count of hidden messages */
|
int indicate_hidden = true; /* show count of hidden messages */
|
||||||
int idle_threshold = 0; /* don't timeout notifications when idle for x seconds */
|
int idle_threshold = 0; /* don't timeout notifications when idle for x seconds */
|
||||||
int show_age_threshold = -1; /* show age of notification, when notification is older than x seconds */
|
int show_age_threshold = -1; /* show age of notification, when notification is older than x seconds */
|
||||||
enum alignment align = left; /* text alignment [left/center/right] */
|
enum alignment align = left; /* text alignment [left/center/right] */
|
||||||
float bounce_freq = 1; /* determines the bounce frequency (if activated) */
|
float bounce_freq = 1; /* determines the bounce frequency (if activated) */
|
||||||
int sticky_history = True;
|
int sticky_history = true;
|
||||||
int history_length = 20; /* max amount of notifications kept in history */
|
int history_length = 20; /* max amount of notifications kept in history */
|
||||||
int show_indicators = True;
|
int show_indicators = true;
|
||||||
int verbosity = 0;
|
int verbosity = 0;
|
||||||
int word_wrap = False;
|
int word_wrap = false;
|
||||||
int ignore_newline = False;
|
int ignore_newline = false;
|
||||||
int line_height = 0; /* if line height < font height, it will be raised to font height */
|
int line_height = 0; /* if line height < font height, it will be raised to font height */
|
||||||
int notification_height = 0; /* if notification height < font height and padding, it will be raised */
|
int notification_height = 0; /* if notification height < font height and padding, it will be raised */
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ char *frame_color = "#888888";
|
|||||||
* This is mainly for crash detection since dbus restarts dunst
|
* This is mainly for crash detection since dbus restarts dunst
|
||||||
* automatically after a crash, so crashes might get unnotices otherwise
|
* automatically after a crash, so crashes might get unnotices otherwise
|
||||||
* */
|
* */
|
||||||
int startup_notification = False;
|
int startup_notification = false;
|
||||||
|
|
||||||
/* monitor to display notifications on */
|
/* monitor to display notifications on */
|
||||||
int monitor = 0;
|
int monitor = 0;
|
||||||
@ -75,19 +75,19 @@ enum follow_mode f_mode = FOLLOW_NONE;
|
|||||||
* use "none" to disable
|
* use "none" to disable
|
||||||
*/
|
*/
|
||||||
keyboard_shortcut close_ks = {.str = "none",
|
keyboard_shortcut close_ks = {.str = "none",
|
||||||
.code = 0,.sym = NoSymbol,.is_valid = False
|
.code = 0,.sym = NoSymbol,.is_valid = false
|
||||||
}; /* ignore this */
|
}; /* ignore this */
|
||||||
|
|
||||||
keyboard_shortcut close_all_ks = {.str = "none",
|
keyboard_shortcut close_all_ks = {.str = "none",
|
||||||
.code = 0,.sym = NoSymbol,.is_valid = False
|
.code = 0,.sym = NoSymbol,.is_valid = false
|
||||||
}; /* ignore this */
|
}; /* ignore this */
|
||||||
|
|
||||||
keyboard_shortcut history_ks = {.str = "none",
|
keyboard_shortcut history_ks = {.str = "none",
|
||||||
.code = 0,.sym = NoSymbol,.is_valid = False
|
.code = 0,.sym = NoSymbol,.is_valid = false
|
||||||
}; /* ignore this */
|
}; /* ignore this */
|
||||||
|
|
||||||
keyboard_shortcut context_ks = {.str = "none",
|
keyboard_shortcut context_ks = {.str = "none",
|
||||||
.code = 0,.sym = NoSymbol,.is_valid = False
|
.code = 0,.sym = NoSymbol,.is_valid = false
|
||||||
}; /* ignore this */
|
}; /* ignore this */
|
||||||
|
|
||||||
rule_t default_rules[] = {
|
rule_t default_rules[] = {
|
||||||
|
2
src/x.c
2
src/x.c
@ -1115,7 +1115,7 @@ static void x_set_wm(Window win)
|
|||||||
|
|
||||||
XStoreName(xctx.dpy, win, title);
|
XStoreName(xctx.dpy, win, title);
|
||||||
XChangeProperty(xctx.dpy, win, _net_wm_title,
|
XChangeProperty(xctx.dpy, win, _net_wm_title,
|
||||||
XInternAtom(xctx.dpy, "UTF8_STRING", False), 8,
|
XInternAtom(xctx.dpy, "UTF8_STRING", false), 8,
|
||||||
PropModeReplace, (unsigned char *) title, strlen(title));
|
PropModeReplace, (unsigned char *) title, strlen(title));
|
||||||
|
|
||||||
/* set window class */
|
/* set window class */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user