wayland/idle-inhibit: use bindable .value() instead of implicit cast

Fixes compilation on some targets.
This commit is contained in:
bbedward 2025-08-27 19:41:02 -04:00 committed by outfoxxed
parent b8625aa098
commit 42420ea26d
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -13,7 +13,7 @@ namespace qs::wayland::idle_inhibit {
using QtWaylandClient::QWaylandWindow; using QtWaylandClient::QWaylandWindow;
IdleInhibitor::IdleInhibitor() { IdleInhibitor::IdleInhibitor() {
this->bBoundWindow.setBinding([this] { return this->bEnabled ? this->bWindowObject : nullptr; }); this->bBoundWindow.setBinding([this] { return this->bEnabled ? this->bWindowObject.value() : nullptr; });
} }
QObject* IdleInhibitor::window() const { return this->bWindowObject; } QObject* IdleInhibitor::window() const { return this->bWindowObject; }