5 static gboolean xerror_ignore = FALSE;
6 gboolean xerror_occured = FALSE;
8 int xerror_handler(Display *d, XErrorEvent *e)
10 xerror_occured = TRUE;
15 /*if (e->error_code != BadWindow) */
17 XGetErrorText(d, e->error_code, errtxt, 127);
18 if (e->error_code == BadWindow)
19 /*g_warning("X Error: %s", errtxt)*/;
21 g_error("X Error: %s", errtxt);
30 void xerror_set_ignore(gboolean ignore)
32 XSync(ob_display, FALSE);
33 xerror_ignore = ignore;