mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Fixed stuck window activity after a quick hide and show on X11.
Messages in an opened chat were not marked as read after the window was shown back from the tray.
This commit is contained in:
@@ -522,6 +522,9 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *evt) {
|
||||
}
|
||||
} else if (obj == this && t == QEvent::Hide) {
|
||||
_exposed = false;
|
||||
if (IsX11()) {
|
||||
destroy();
|
||||
}
|
||||
} else if (obj == this && t == QEvent::ThemeChange) {
|
||||
updateWindowIcon();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user