From 285f525717f7e82a5db698d21376939fdf847306 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 12 Apr 2013 14:49:16 +0000 Subject: makes no sense to set an error handler which uses X_Dpy before XOpenDisplay. --- calmwm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'calmwm.c') diff --git a/calmwm.c b/calmwm.c index e0c8558..3ffe2b4 100644 --- a/calmwm.c +++ b/calmwm.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.c,v 1.73 2013/04/12 14:46:30 okan Exp $ + * $OpenBSD: calmwm.c,v 1.74 2013/04/12 14:49:16 okan Exp $ */ #include @@ -129,8 +129,6 @@ dpy_init(const char *dpyname) { int i; - XSetErrorHandler(x_errorhandler); - if ((X_Dpy = XOpenDisplay(dpyname)) == NULL) errx(1, "unable to open display \"%s\"", XDisplayName(dpyname)); -- cgit v1.2.3-2-gb3c3