summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-09 22:54:01 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-09 22:56:17 +0300
commit481ea0b776bbab92b500540f59c5a191c6e93cba (patch)
tree5b73e15b5ab16d67095852d83ba764d83c36cbb8 /src/settings.h
parentc108b00ddc98e99182bf1a0f83602772f4931122 (diff)
downloadplus-481ea0b776bbab92b500540f59c5a191c6e93cba.tar.gz
plus-481ea0b776bbab92b500540f59c5a191c6e93cba.tar.bz2
plus-481ea0b776bbab92b500540f59c5a191c6e93cba.tar.xz
plus-481ea0b776bbab92b500540f59c5a191c6e93cba.zip
Add workaround for fix alt-tab issue in SDL2.
Also add option to enable/disable this workaround.
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/settings.h b/src/settings.h
index 308da0202..1a165ad99 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -25,6 +25,8 @@
#include "enums/emotetype.h"
+#include "enums/input/keyboardfocus.h"
+
#include "enums/resources/map/maptype.h"
#include "utils/vector.h"
@@ -82,7 +84,7 @@ class Settings final
emoteType(EmoteType::Player),
persistentIp(true),
limitFps(false),
- inputFocused(true),
+ inputFocused(KeyboardFocus::Focused),
mouseFocused(true),
disableGameModifiers(false),
awayMode(false),
@@ -147,7 +149,7 @@ class Settings final
EmoteTypeT emoteType;
bool persistentIp;
bool limitFps;
- bool inputFocused;
+ KeyboardFocusT inputFocused;
bool mouseFocused;
bool disableGameModifiers;
bool awayMode;