mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
wayland/idle-inhibit: use bindable .value() instead of implicit cast
Fixes compilation on some targets.
This commit is contained in:
parent
b8625aa098
commit
42420ea26d
1 changed files with 1 additions and 1 deletions
|
|
@ -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; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue