X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fxerror.c;h=12a66afcb6333b07eed65316b75b68625ec11dd7;hb=2aa5cd3574b2bbdc103cb7626aa1ff77ea2c0046;hp=a6066e2f37c74fa59d54f9869e6112be32ebf256;hpb=16f46c296d1fcd3f27fc62a18e71c55fb3fd3e88;p=chaz%2Fopenbox diff --git a/openbox/xerror.c b/openbox/xerror.c index a6066e2f..12a66afc 100644 --- a/openbox/xerror.c +++ b/openbox/xerror.c @@ -23,21 +23,21 @@ static gboolean xerror_ignore = FALSE; gboolean xerror_occured = FALSE; -int xerror_handler(Display *d, XErrorEvent *e) +gint xerror_handler(Display *d, XErrorEvent *e) { xerror_occured = TRUE; #ifdef DEBUG if (!xerror_ignore) { - char errtxt[128]; + gchar 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); - } + /*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;