mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Fallback to D-Bus methods if XCB-based LastUserInputTime failed
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user