diff options
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c index bef8852..801d852 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,11 +1,11 @@ #define _POSIX_C_SOURCE 200809L +#include <X11/Xlib.h> #include <ctype.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> -#include <errno.h> #include <X11/keysym.h> #include "parser.h" @@ -222,6 +222,14 @@ found:; else if (!strcmp(key, "swap_border_colour")) { cfg->border_swap_col = parse_col(rest); } + else if (!strcmp(key, "new_win_focus")) { + if (!strcmp(rest, "true")) { + cfg->new_win_focus = True; + } + else { + cfg->new_win_focus = False; + } + } else if (!strcmp(key, "master_width")) { float mf = (float)atoi(rest) / 100.0f; for (int i = 0; i < MAX_MONITORS; i++) { |
