mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Check if the window is not overlapped when is not active
This commit is contained in:
parent
1d64b53cd0
commit
6b1bc1e845
1 changed files with 7 additions and 2 deletions
|
@ -557,8 +557,13 @@ bool MainWindow::doWeMarkAsRead() {
|
||||||
if (!_main || Ui::isLayerShown()) {
|
if (!_main || Ui::isLayerShown()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
updateIsActive();
|
// for tile grid in case other windows have shadows
|
||||||
return isActive() && _main->doWeMarkAsRead();
|
// i've seen some windows with >70px shadow margins
|
||||||
|
const auto margin = style::ConvertScale(100);
|
||||||
|
return Ui::IsContentVisible(
|
||||||
|
this,
|
||||||
|
inner().marginsRemoved(QMargins(margin, margin, margin, margin)))
|
||||||
|
&& _main->doWeMarkAsRead();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::checkHistoryActivation() {
|
void MainWindow::checkHistoryActivation() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue