From 577327635cee0aaf8e828f9c5039d6e25b6a6311 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 13 Nov 2014 10:58:01 +0100 Subject: GHOST/X11: correct USE_X11_ERROR_HANDLERS define --- intern/ghost/intern/GHOST_SystemX11.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index 75a9223d6a3..e3baebace0d 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -1874,8 +1874,11 @@ GHOST_TSuccess GHOST_SystemX11::pushDragDropEvent(GHOST_TEventType eventType, } #endif -#ifdef WITH_X11_XINPUT -/* +#if defined(USE_X11_ERROR_HANDLERS) || defined(WITH_X11_XINPUT) +/* + * These callbacks can be used for debugging, so we can breakpoint on an X11 error. + + * * Dummy function to get around IO Handler exiting if device invalid * Basically it will not crash blender now if you have a X device that * is configured but not plugged in. @@ -1896,7 +1899,9 @@ int GHOST_X11_ApplicationIOErrorHandler(Display *display) /* No exit! - but keep lint happy */ return 0; } +#endif +#ifdef WITH_X11_XINPUT /* These C functions are copied from Wine 1.1.13's wintab.c */ #define BOOL int #define TRUE 1 -- cgit v1.2.3