diff options
| -rw-r--r-- | docs/sxwm-dev.md | 6 | ||||
| -rw-r--r-- | src/parser.c | 2 | ||||
| -rw-r--r-- | src/sxwm.c | 12 |
3 files changed, 7 insertions, 13 deletions
diff --git a/docs/sxwm-dev.md b/docs/sxwm-dev.md index ee75b16..e8e118a 100644 --- a/docs/sxwm-dev.md +++ b/docs/sxwm-dev.md @@ -9,7 +9,7 @@ ## Headers -| Header | Job | +| Header | Job | |------------------------------|--------------------------------------------------------------------------| | `signal.h` | Signal handling functions and definitions | | `unistd.h` | Standard POSIX functionality | @@ -20,9 +20,9 @@ | `X11/extensions/Xinerama.h` | Xinerama extension definitions for multi-monitor setups | | `X11/Xcursor/Xcursor.h` | Modern cursor handling | | `linux/limits.h` | Linux specific limits for various data types | -| | | +| | | | `defs.h` | Custom definitions and macros specific to the application or project | -| `parser.h` | Config file parser components | +| `parser.h` | Config file parser components | ## sxwm.c diff --git a/src/parser.c b/src/parser.c index f670ec6..1748759 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,6 +1,5 @@ #define _POSIX_C_SOURCE 200809L #include <ctype.h> -#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -12,7 +11,6 @@ #ifdef __linux__ #include <wordexp.h> -#include <linux/limits.h> #endif #include "parser.h" @@ -13,18 +13,18 @@ * (C) Abhinav Prasai 2025 */ -#include <X11/X.h> #include <err.h> -#include <stdio.h> -#include <limits.h> #include <signal.h> +#include <stdint.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <unistd.h> +#include <X11/keysym.h> +#include <X11/X.h> #include <X11/Xatom.h> -#include <X11/XKBlib.h> #include <X11/Xlib.h> #include <X11/Xproto.h> #include <X11/Xutil.h> @@ -32,10 +32,6 @@ #include <X11/extensions/Xinerama.h> #include <X11/Xcursor/Xcursor.h> -#ifdef __linux__ -#include <linux/limits.h> -#endif - #include "defs.h" #include "parser.h" |
