commit 0e8cc9fe863d693bb615625423a2e433602de001
parent 2c3c353d7470706cb3c0b8c5d46f0857a00d997a
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Fri, 24 Jan 2020 06:40:37 +0200
sowm: Fix errors. Closes #51
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/sowm.c b/sowm.c
@@ -259,7 +259,7 @@ int main(void) {
if (!(d = XOpenDisplay(0))) exit(1);
signal(SIGCHLD, SIG_IGN);
- XSetErrorHandler(0);
+ XSetErrorHandler(xerror);
int s = DefaultScreen(d);
Window root = RootWindow(d, s);
diff --git a/sowm.h b/sowm.h
@@ -52,3 +52,4 @@ void win_prev(const Arg arg);
void win_next(const Arg arg);
void win_to_ws(const Arg arg);
void ws_go(const Arg arg);
+int xerror() { return 0; }