summaryrefslogtreecommitdiff
path: root/libxklavier/xklavier_evt.c
diff options
context:
space:
mode:
authorSergey Udaltsov <svu@gnome.org>2009-09-30 09:49:56 +0000
committerSergey Udaltsov <svu@gnome.org>2009-09-30 09:49:56 +0000
commit9ea4cbefa5cfeac7f8b77a17380d682bf8741d16 (patch)
tree18f390e971716eedccb1758d716e297b9250497a /libxklavier/xklavier_evt.c
parentee336cef1303206c34a6176f43bad1c09eb9f2b5 (diff)
downloadlibxklavier-9ea4cbefa5cfeac7f8b77a17380d682bf8741d16.tar.gz
engine-specific error handling
Diffstat (limited to 'libxklavier/xklavier_evt.c')
-rw-r--r--libxklavier/xklavier_evt.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libxklavier/xklavier_evt.c b/libxklavier/xklavier_evt.c
index dca452b..85949a0 100644
--- a/libxklavier/xklavier_evt.c
+++ b/libxklavier/xklavier_evt.c
@@ -522,6 +522,22 @@ xkl_process_error(Display * dpy, XErrorEvent * evt)
break;
}
default:
+ if (engine != NULL
+ && xkl_engine_priv(engine, process_x_error)) {
+ if (xkl_engine_priv(engine, process_x_error)
+ (engine, evt)) {
+ xkl_debug(200,
+ "X ERROR processed by the engine: %p, "
+ WINID_FORMAT ", %d [%s], "
+ "X11 request: %d, minor code: %d\n",
+ dpy,
+ (unsigned long) evt->resourceid,
+ (int) evt->error_code, buf,
+ (int) evt->request_code,
+ (int) evt->minor_code);
+ break;
+ }
+ }
xkl_debug(200,
"Unexpected by libxklavier X ERROR: %p, "
WINID_FORMAT ", %d [%s], "