X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fxerror.c;h=b9024150861d000e677de186109bccba6341681d;hb=854b2ae68498133f3119ec614b725025af3fd66b;hp=3f112505c953fd267aa4a079ef30bc071ec32e2a;hpb=6dddd86975ef0e5bfa2924f6136d76fe587198d8;p=chaz%2Fopenbox diff --git a/openbox/xerror.c b/openbox/xerror.c index 3f112505..b9024150 100644 --- a/openbox/xerror.c +++ b/openbox/xerror.c @@ -1,6 +1,7 @@ /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- xerror.c for the Openbox window manager + Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003 Ben Jansens This program is free software; you can redistribute it and/or modify @@ -23,13 +24,13 @@ 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);