aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2013-04-12 14:49:16 +0000
committerokan2013-04-12 14:49:16 +0000
commit285f525717f7e82a5db698d21376939fdf847306 (patch)
treecf4612bcf800ef1aa6381fb3a291a4ce7e69d2ac
parent41200e99e2cf274538d8533ee449dfa610932e07 (diff)
downloadcwm-285f525717f7e82a5db698d21376939fdf847306.tar.gz
makes no sense to set an error handler which uses X_Dpy before XOpenDisplay.
-rw-r--r--calmwm.c4
1 files changed, 1 insertions, 3 deletions
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 <sys/param.h>
@@ -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));