Skip to content

Commit 42420ea

Browse files
bbedwardoutfoxxed
authored andcommitted
wayland/idle-inhibit: use bindable .value() instead of implicit cast
Fixes compilation on some targets.
1 parent b8625aa commit 42420ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wayland/idle_inhibit/inhibitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace qs::wayland::idle_inhibit {
1313
using QtWaylandClient::QWaylandWindow;
1414

1515
IdleInhibitor::IdleInhibitor() {
16-
this->bBoundWindow.setBinding([this] { return this->bEnabled ? this->bWindowObject : nullptr; });
16+
this->bBoundWindow.setBinding([this] { return this->bEnabled ? this->bWindowObject.value() : nullptr; });
1717
}
1818

1919
QObject* IdleInhibitor::window() const { return this->bWindowObject; }

0 commit comments

Comments
 (0)