summaryrefslogtreecommitdiff
path: root/c/xerror.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 07:54:23 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 07:54:23 +0000
commita648c05a7a2608e7e909317f5afe8427a0ea0d68 (patch)
tree9a8355e87192adeec50ee7eaff227decc8af8ffd /c/xerror.c
parent474f689132d906a553bdc695d3c179652cbe8c53 (diff)
kill the c dir
Diffstat (limited to 'c/xerror.c')
-rw-r--r--c/xerror.c32
1 files changed, 0 insertions, 32 deletions
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 <glib.h>
-#include <X11/Xlib.h>
-
-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;
-}