Add NO_X11 option at compiletime to disable X11 specific stuff with SDL driver

just compile with
$ NO_X11=1 make
This commit is contained in:
Thomas Bernard
2018-07-20 12:26:52 +02:00
parent 6ec72f6b71
commit 88430bb92f
4 changed files with 15 additions and 8 deletions

View File

@@ -581,7 +581,7 @@ void Allow_drag_and_drop(int flag)
#ifdef __WIN32__
DragAcceptFiles(GFX2_Get_Window_Handle(), flag?TRUE:FALSE);
SDL_EventState (SDL_SYSWMEVENT, flag?SDL_ENABLE:SDL_DISABLE);
#elif defined(SDL_VIDEO_DRIVER_X11)
#elif defined(SDL_VIDEO_DRIVER_X11) && !defined(NO_X11)
Atom version = flag ? 5 : 0;
Display * display;
Window window;