summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-09 00:45:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-09 00:45:03 +0300
commitaf5cdf2f017a012bfc2ea4a5157607f12ce76ce9 (patch)
tree32da3eeb415f01c40d87132bf1546e2e1ab74b38 /src/progs
parent13f1cb248d227d25901ed222109b552e2068b073 (diff)
downloadplus-af5cdf2f017a012bfc2ea4a5157607f12ce76ce9.tar.gz
plus-af5cdf2f017a012bfc2ea4a5157607f12ce76ce9.tar.bz2
plus-af5cdf2f017a012bfc2ea4a5157607f12ce76ce9.tar.xz
plus-af5cdf2f017a012bfc2ea4a5157607f12ce76ce9.zip
Add logging wm events for SDL2.
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/dyecmd/client.cpp9
-rw-r--r--src/progs/manaplus/client.cpp9
2 files changed, 2 insertions, 16 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp
index 8685cc024..a46227f08 100644
--- a/src/progs/dyecmd/client.cpp
+++ b/src/progs/dyecmd/client.cpp
@@ -243,14 +243,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();
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();