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

Fixes compilation on some targets.
This commit is contained in:
bbedward authored and outfoxxed committed 2025-08-27 20:41:07 -07:00
1 parent b8625aa098
commit 42420ea26d
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ namespace qs::wayland::idle_inhibit {
using QtWaylandClient::QWaylandWindow;
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; }