fixed the compilation error

This commit is contained in:
guttermonk
2025-10-17 19:50:38 -05:00
parent 173e7306d0
commit d68f168e09
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ namespace waybar::modules {
class IdleInhibitor : public ALabel { class IdleInhibitor : public ALabel {
sigc::connection timeout_; sigc::connection timeout_;
struct ext_idle_notification_v1* idle_notification_; struct ::ext_idle_notification_v1* idle_notification_;
uint32_t idle_timeout_ms_; uint32_t idle_timeout_ms_;
public: public:
@@ -26,8 +26,8 @@ class IdleInhibitor : public ALabel {
void toggleStatus(); void toggleStatus();
void setupIdleNotification(); void setupIdleNotification();
void teardownIdleNotification(); void teardownIdleNotification();
static void handleIdled(void* data, struct ext_idle_notification_v1* notification); static void handleIdled(void* data, struct ::ext_idle_notification_v1* notification);
static void handleResumed(void* data, struct ext_idle_notification_v1* notification); static void handleResumed(void* data, struct ::ext_idle_notification_v1* notification);
const Bar& bar_; const Bar& bar_;
struct zwp_idle_inhibitor_v1* idle_inhibitor_; struct zwp_idle_inhibitor_v1* idle_inhibitor_;
+2 -2
View File
@@ -160,7 +160,7 @@ bool waybar::modules::IdleInhibitor::handleToggle(GdkEventButton* const& e) {
} }
void waybar::modules::IdleInhibitor::handleIdled(void* data, void waybar::modules::IdleInhibitor::handleIdled(void* data,
struct ext_idle_notification_v1* /*notification*/) { struct ::ext_idle_notification_v1* /*notification*/) {
spdlog::info("deactivating idle_inhibitor due to user inactivity"); spdlog::info("deactivating idle_inhibitor due to user inactivity");
status = false; status = false;
for (auto const& module : waybar::modules::IdleInhibitor::modules) { for (auto const& module : waybar::modules::IdleInhibitor::modules) {
@@ -169,7 +169,7 @@ void waybar::modules::IdleInhibitor::handleIdled(void* data,
} }
void waybar::modules::IdleInhibitor::handleResumed(void* data, void waybar::modules::IdleInhibitor::handleResumed(void* data,
struct ext_idle_notification_v1* /*notification*/) { struct ::ext_idle_notification_v1* /*notification*/) {
// User became active again - notification will continue monitoring // User became active again - notification will continue monitoring
spdlog::debug("user activity detected, idle_inhibitor still active"); spdlog::debug("user activity detected, idle_inhibitor still active");
} }