From 481ea0b776bbab92b500540f59c5a191c6e93cba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Sep 2017 22:54:01 +0300 Subject: Add workaround for fix alt-tab issue in SDL2. Also add option to enable/disable this workaround. --- src/gui/widgets/tabs/setup_other.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/widgets/tabs/setup_other.cpp') diff --git a/src/gui/widgets/tabs/setup_other.cpp b/src/gui/widgets/tabs/setup_other.cpp index 413b93a7f..e608d27e1 100644 --- a/src/gui/widgets/tabs/setup_other.cpp +++ b/src/gui/widgets/tabs/setup_other.cpp @@ -332,6 +332,13 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : new SetupItemIntTextField(_("Custom repeat interval"), "", "repeateInterval2", this, "repeateInterval2Event", 0, 10000); +#ifdef USE_SDL2 + // TRANSLATORS: settings option + new SetupItemCheckBox(_("Enable alt-tab workaround"), "", + "blockAltTab", this, "blockAltTabEvent"); +#endif // USE_SDL2 + + // TRANSLATORS: settings group new SetupItemLabel(_("Windows"), "", this); -- cgit v1.2.3-70-g09d2