mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-23 08:46:55 +00:00
Fallback to D-Bus methods if XCB-based LastUserInputTime failed
This commit is contained in:
parent
983d9e6eee
commit
638ea3111f
@ -1013,7 +1013,10 @@ QImage GetImageFromClipboard() {
|
||||
|
||||
std::optional<crl::time> LastUserInputTime() {
|
||||
if (!IsWayland()) {
|
||||
return XCBLastUserInputTime();
|
||||
const auto xcbResult = XCBLastUserInputTime();
|
||||
if (xcbResult.has_value()) {
|
||||
return xcbResult;
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
|
Loading…
Reference in New Issue
Block a user