wayland/idle-inhibit: fix formatting + lints, destructor, add logs

This commit is contained in:
outfoxxed 2025-09-04 02:51:50 -07:00
parent 2c2983462c
commit b8fa424f85
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
4 changed files with 40 additions and 2 deletions

View file

@ -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) {