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:
parent
f135676d36
commit
4b4de9d5aa
|
@ -517,6 +517,7 @@ bool MainWindow::markingAsRead() const {
|
||||||
&& !_layer
|
&& !_layer
|
||||||
&& !isHidden()
|
&& !isHidden()
|
||||||
&& !isMinimized()
|
&& !isMinimized()
|
||||||
|
&& windowHandle()->isExposed()
|
||||||
&& (AutoScrollInactiveChat.value()
|
&& (AutoScrollInactiveChat.value()
|
||||||
|| (isActive() && !_main->session().updates().isIdle()));
|
|| (isActive() && !_main->session().updates().isIdle()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue