diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 07:54:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 07:54:23 +0000 |
| commit | a648c05a7a2608e7e909317f5afe8427a0ea0d68 (patch) | |
| tree | 9a8355e87192adeec50ee7eaff227decc8af8ffd /c/xerror.c | |
| parent | 474f689132d906a553bdc695d3c179652cbe8c53 (diff) | |
kill the c dir
Diffstat (limited to 'c/xerror.c')
| -rw-r--r-- | c/xerror.c | 32 |
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; -} |
