Fix incorrect #endif location

This commit is contained in:
Cameron Gutman
2020-02-24 20:55:07 -08:00
parent 598a48ec50
commit dfc0d2303b

View File

@@ -1086,10 +1086,11 @@ void Session::exec(int displayOriginX, int displayOriginY)
#if !SDL_VERSION_ATLEAST(2, 0, 11)
// HACK: This doesn't work on Wayland until we render a frame, so
// just don't do it for now. This bug is fixed in SDL 2.0.11.
if (strcmp(SDL_GetCurrentVideoDriver(), "wayland") != 0) {
if (strcmp(SDL_GetCurrentVideoDriver(), "wayland") != 0)
#endif
{
m_InputHandler->setCaptureActive(true);
}
#endif
}
#endif