summaryrefslogtreecommitdiff
path: root/src/eventsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index 1ca458366..bf463a0c2 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -512,13 +512,14 @@ void EventsManager::logEvent(const SDL_Event &event)
{
#ifdef USE_X11
const bool res = X11Logger::logEvent(event);
+ if (res == false)
+ logger->assertLog("event: SDL_SYSWMEVENT: not supported:");
#else // USE_X11
const bool res = false;
+ logger->assertLog("event: SDL_SYSWMEVENT: not supported:");
#endif // USE_X11
- if (res == false)
- logger->assertLog("event: SDL_SYSWMEVENT: not supported:");
break;
}
case SDL_USEREVENT: