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; }