mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Don't wait for input when there are fullscreen applications
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user