From af5cdf2f017a012bfc2ea4a5157607f12ce76ce9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Sep 2017 00:45:03 +0300 Subject: Add logging wm events for SDL2. --- src/progs/manaplus/client.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/progs/manaplus') diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index aaacdc7a6..6526fc82a 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -372,14 +372,7 @@ void Client::gameInit() #endif // USE_SDL2 WindowManager::applyKeyRepeat(); - - // disable unused SDL events -#ifndef USE_SDL2 - SDL_EventState(SDL_VIDEOEXPOSE, SDL_IGNORE); -#endif // USE_SDL2 - - SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE); - SDL_EventState(SDL_USEREVENT, SDL_IGNORE); + eventsManager.enableEvents(); #ifdef WIN32 Dirs::extractDataDir(); -- cgit v1.2.3-60-g2f50