diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_other.cpp | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index ae75f9981..e4f6d751a 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -312,7 +312,8 @@ void ChatTab::chatLog(std::string line, return; const bool notFocused = WindowManager::getIsMinimized() || - (!settings.mouseFocused && !settings.inputFocused); + (!settings.mouseFocused && + settings.inputFocused == KeyboardFocus::Unfocused); if (this != tabArea->getSelectedTab() || notFocused) { 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); |