summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-19 20:10:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-19 20:10:11 +0300
commit0d2d350e8eb6f57be31f926897e39c6483eeee75 (patch)
treed99094da424eeff854667b30d1cf5bf72babaf09 /src/gui
parentc097592c3f05168499603901a19479cb07fc6cc1 (diff)
downloadmv-0d2d350e8eb6f57be31f926897e39c6483eeee75.tar.gz
mv-0d2d350e8eb6f57be31f926897e39c6483eeee75.tar.bz2
mv-0d2d350e8eb6f57be31f926897e39c6483eeee75.tar.xz
mv-0d2d350e8eb6f57be31f926897e39c6483eeee75.zip
Add option to grab/ungrab input to game window.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/setup_visual.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/setup_visual.cpp b/src/gui/setup_visual.cpp
index 6df2dbf82..22894e267 100644
--- a/src/gui/setup_visual.cpp
+++ b/src/gui/setup_visual.cpp
@@ -55,10 +55,14 @@ Setup_Visual::Setup_Visual()
new SetupItemCheckBox(_("Show pickup notifications as particle effects"),
"", "showpickupparticle", this, "showpickupparticleEvent");
+ new SetupItemCheckBox(_("Grab mouse and keyboard input"),
+ "", "grabinput", this, "grabinputEvent");
+
setDimension(gcn::Rectangle(0, 0, 550, 350));
}
void Setup_Visual::apply()
{
SetupTabScroll::apply();
+ Client::applyGrabMode();
}