From a648c05a7a2608e7e909317f5afe8427a0ea0d68 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 21 Mar 2003 07:54:23 +0000 Subject: kill the c dir --- c/xerror.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 c/xerror.c (limited to 'c/xerror.c') diff --git a/c/xerror.c b/c/xerror.c deleted file mode 100644 index 49a795f8..00000000 --- a/c/xerror.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "openbox.h" -#include -#include - -static gboolean xerror_ignore = FALSE; - -int xerror_handler(Display *d, XErrorEvent *e) -{ -#ifdef DEBUG - if (!xerror_ignore) { - char errtxt[128]; - - /*if (e->error_code != BadWindow) */ - { - XGetErrorText(d, e->error_code, errtxt, 127); - if (e->error_code == BadWindow) - g_warning("X Error: %s", errtxt); - else - g_error("X Error: %s", errtxt); - } - } -#else - (void)d; (void)e; -#endif - return 0; -} - -void xerror_set_ignore(gboolean ignore) -{ - XSync(ob_display, FALSE); - xerror_ignore = ignore; -} -- cgit v1.2.3