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

@@ -149,7 +149,7 @@ QPoint Inner::tooltipPos() const {
}
bool Inner::tooltipWindowActive() const {
return Ui::InFocusChain(window());
return Ui::AppInFocus() && Ui::InFocusChain(window());
}
Inner::~Inner() = default;