mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
wayland/idle-inhibit: fix formatting + lints, destructor, add logs
This commit is contained in:
parent
2c2983462c
commit
b8fa424f85
4 changed files with 40 additions and 2 deletions
|
|
@ -13,9 +13,13 @@ namespace qs::wayland::idle_inhibit {
|
|||
using QtWaylandClient::QWaylandWindow;
|
||||
|
||||
IdleInhibitor::IdleInhibitor() {
|
||||
this->bBoundWindow.setBinding([this] { return this->bEnabled ? this->bWindowObject.value() : nullptr; });
|
||||
this->bBoundWindow.setBinding([this] {
|
||||
return this->bEnabled ? this->bWindowObject.value() : nullptr;
|
||||
});
|
||||
}
|
||||
|
||||
IdleInhibitor::~IdleInhibitor() { delete this->inhibitor; }
|
||||
|
||||
QObject* IdleInhibitor::window() const { return this->bWindowObject; }
|
||||
|
||||
void IdleInhibitor::setWindow(QObject* window) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue