Catch X11 extension errors...since most of these are notifications that we
queried for a missing extension (such as the XiG vidmode one that most people don't have), and default Xlib behaviour is to write notification to stderr, this tends to generate incorrect bug reports. Since we'll actually deal with the missing extension when querying for it, we ignore these errors in our hook. The rest continue to pass through to the default handler. Fixes Bugzilla #42. --ryan. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401251
This commit is contained in:
parent
0eb1d37f73
commit
37f6992829
3 changed files with 31 additions and 2 deletions
|
@ -113,6 +113,8 @@ SDL_X11_SYM(1,void,XextDestroyExtension,(XExtensionInfo*))
|
|||
SDL_X11_SYM(1,XExtDisplayInfo*,XextFindDisplay,(XExtensionInfo*,Display*))
|
||||
SDL_X11_SYM(1,int,XextRemoveDisplay,(XExtensionInfo*,Display*))
|
||||
SDL_X11_SYM(1,Bool,XQueryExtension,(Display*,_Xconst char*,int*,int*,int*))
|
||||
SDL_X11_SYM(1,char *,XDisplayString,(Display*))
|
||||
SDL_X11_SYM(1,int,XGetErrorText,(Display*,int,char*,int))
|
||||
|
||||
#ifdef X_HAVE_UTF8_STRING
|
||||
SDL_X11_SYM(1,int,Xutf8TextListToTextProperty,(Display*,char**,int,XICCEncodingStyle,XTextProperty*))
|
||||
|
@ -159,6 +161,7 @@ SDL_X11_SYM(1,Bool,XShmQueryExtension,(Display*))
|
|||
SDL_X11_SYM(1,SDL_X11_XSynchronizeRetType,XSynchronize,(Display*,Bool))
|
||||
SDL_X11_SYM(1,SDL_X11_XESetWireToEventRetType,XESetWireToEvent,(Display*,int,SDL_X11_XESetWireToEventRetType))
|
||||
SDL_X11_SYM(1,SDL_X11_XESetEventToWireRetType,XESetEventToWire,(Display*,int,SDL_X11_XESetEventToWireRetType))
|
||||
SDL_X11_SYM(1,SDL_X11_XSetExtensionErrorHandlerType,XSetExtensionErrorHandler,(SDL_X11_XSetExtensionErrorHandlerType))
|
||||
|
||||
/* end of SDL_x11sym.h ... */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue