From 0e8cc9fe863d693bb615625423a2e433602de001 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 24 Jan 2020 06:40:37 +0200 Subject: [PATCH] sowm: Fix errors. Closes #51 --- sowm.c | 2 +- sowm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sowm.c b/sowm.c index 958d321..793826c 100644 --- 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 index 4ae77f4..750b297 100644 --- 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; }