#include <X11/Xlib.h>
static gboolean xerror_ignore = FALSE;
+gboolean xerror_occured = FALSE;
int xerror_handler(Display *d, XErrorEvent *e)
{
+ xerror_occured = TRUE;
#ifdef DEBUG
if (!xerror_ignore) {
char errtxt[128];
{
XGetErrorText(d, e->error_code, errtxt, 127);
if (e->error_code == BadWindow)
- g_warning("X Error: %s", errtxt);
+ /*g_warning("X Error: %s", errtxt)*/;
else
g_error("X Error: %s", errtxt);
}