Don't mark as read when unexposed

There's a yet another another visility state called "exposed" and the window could be unexposed while being not hidden and not minimized.

When the window is unexposed, Qt doesn't draw and the user can't see changes for sure.
This commit is contained in:
Ilya Fedin 2024-03-23 02:55:33 +04:00 committed by John Preston
parent f135676d36
commit 4b4de9d5aa
1 changed files with 1 additions and 0 deletions

View File

@ -517,6 +517,7 @@ bool MainWindow::markingAsRead() const {
&& !_layer
&& !isHidden()
&& !isMinimized()
&& windowHandle()->isExposed()
&& (AutoScrollInactiveChat.value()
|| (isActive() && !_main->session().updates().isIdle()));
}