#define _GNU_SOURCE #include #include #include typedef int (*XDefineCursor_t)( Display*, Window, Cursor ); typedef void* (*SetCursor_t)( void* ); int XDefineCursor( Display* d, Window w, Cursor c ) { static XDefineCursor_t real = NULL; if( !real ) real = dlsym( RTLD_NEXT, "XDefineCursor" ); return real( d, w, None ); } void* SetCursor( void* cursor ) { static SetCursor_t real = NULL; if( !real ) real = dlsym( RTLD_NEXT, "SetCursor" ); return real( NULL ); }