2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Don't wait for input when there are fullscreen applications

This commit is contained in:
Ilya Fedin
2022-12-16 13:53:19 +04:00
committed by John Preston
parent 3991be752c
commit 13eeddf479
6 changed files with 22 additions and 1 deletions

View File

@@ -729,7 +729,9 @@ bool Notification::checkLastInput(
std::optional<crl::time> lastInputTime) {
if (!_waitingForInput) return true;
const auto waitForUserInput = lastInputTime.has_value()
using namespace Platform::Notifications;
const auto waitForUserInput = WaitForInputForCustom()
&& lastInputTime.has_value()
&& (*lastInputTime <= _started);
if (!waitForUserInput) {