mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Revert "Check if the window is not overlapped when is not active"
This reverts commit 6b1bc1e845
.
Fixes #16188. Maybe add an option later.
This commit is contained in:
parent
7b466e0643
commit
d85981cca0
1 changed files with 2 additions and 7 deletions
|
@ -557,13 +557,8 @@ bool MainWindow::doWeMarkAsRead() {
|
||||||
if (!_main || Ui::isLayerShown()) {
|
if (!_main || Ui::isLayerShown()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// for tile grid in case other windows have shadows
|
updateIsActive();
|
||||||
// i've seen some windows with >70px shadow margins
|
return isActive() && _main->doWeMarkAsRead();
|
||||||
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