diff --git a/src/wayland/idle_inhibit/inhibitor.cpp b/src/wayland/idle_inhibit/inhibitor.cpp index f576722..697f127 100644 --- a/src/wayland/idle_inhibit/inhibitor.cpp +++ b/src/wayland/idle_inhibit/inhibitor.cpp @@ -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; }