diff options
author | Sergey Udaltsov <svu@gnome.org> | 2009-09-30 09:49:56 +0000 |
---|---|---|
committer | Sergey Udaltsov <svu@gnome.org> | 2009-09-30 09:49:56 +0000 |
commit | 9ea4cbefa5cfeac7f8b77a17380d682bf8741d16 (patch) | |
tree | 18f390e971716eedccb1758d716e297b9250497a /libxklavier/xklavier_evt.c | |
parent | ee336cef1303206c34a6176f43bad1c09eb9f2b5 (diff) | |
download | libxklavier-9ea4cbefa5cfeac7f8b77a17380d682bf8741d16.tar.gz |
engine-specific error handling
Diffstat (limited to 'libxklavier/xklavier_evt.c')
-rw-r--r-- | libxklavier/xklavier_evt.c | 16 |
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], " |