2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Check if app is active before showing a tooltip.

Fixes #6885, fixes #6895.
This commit is contained in:
John Preston
2019-12-31 16:48:44 +03:00
parent 3b562bfa3a
commit f2a92f2b02
11 changed files with 17 additions and 11 deletions

View File

@@ -1118,7 +1118,7 @@ QPoint SilentToggle::tooltipPos() const {
}
bool SilentToggle::tooltipWindowActive() const {
return InFocusChain(window());
return Ui::AppInFocus() && InFocusChain(window());
}
} // namespace Ui