Mercurial > gbwm
changeset 17:7a779983be56
added missing library and removed unused code (refactor)
author | Atarwn Gard <a@qwa.su> |
---|---|
date | Wed, 15 Oct 2025 09:13:26 +0500 |
parents | 5e9111d1a285 |
children | cecd3bd2d2a2 |
files | default.config.h gbwm.c |
diffstat | 2 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/default.config.h Wed Oct 15 08:40:10 2025 +0500 +++ b/default.config.h Wed Oct 15 09:13:26 2025 +0500 @@ -1,9 +1,6 @@ #ifndef CONFIG_H #define CONFIG_H -#include <X11/Xlib.h> -#include <X11/keysym.h> - // Modifier #define MOD Mod4Mask
--- a/gbwm.c Wed Oct 15 08:40:10 2025 +0500 +++ b/gbwm.c Wed Oct 15 09:13:26 2025 +0500 @@ -5,6 +5,7 @@ #include <X11/Xft/Xft.h> #include <X11/Xutil.h> #include <X11/keysym.h> +#include <X11/XF86keysym.h> #include <X11/cursorfont.h> #include <X11/extensions/XTest.h> #include <stdio.h> @@ -816,10 +817,6 @@ die("cannot open X11 display (is X running?)"); signal(SIGCHLD, sigchld); - if (!(dpy = XOpenDisplay(NULL))) { - fprintf(stderr, "eowm: cannot open display\n"); - exit(1); - } XSetErrorHandler(xerror_handler); sw = DisplayWidth(dpy, DefaultScreen(dpy));