summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 13:33:09 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commit2652836af364935294a2c731de74502de530f9e6 (patch)
tree97a19407af17f2ad19d830a41e35b41771a5df27 /src/client.cpp
parentc63a2a04e47c361a7254b0749298de84a6f331fa (diff)
downloadmv-2652836af364935294a2c731de74502de530f9e6.tar.gz
mv-2652836af364935294a2c731de74502de530f9e6.tar.bz2
mv-2652836af364935294a2c731de74502de530f9e6.tar.xz
mv-2652836af364935294a2c731de74502de530f9e6.zip
fix "grab input" in SDL2.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 974e8d400..f7fd72094 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2815,12 +2815,8 @@ void Client::resizeVideo(int width, int height, const bool always)
void Client::applyGrabMode()
{
-#ifdef USE_SDL2
- // +++ need use SDL_SetWindowGrab
-#else
- SDL_WM_GrabInput(config.getBoolValue("grabinput")
- ? SDL_GRAB_ON : SDL_GRAB_OFF);
-#endif
+ SDL::grabInput(mainGraphics->getWindow(),
+ config.getBoolValue("grabinput"));
}
void Client::applyGamma()