fixed the type declarations

This commit is contained in:
guttermonk
2025-10-17 19:58:43 -05:00
parent d68f168e09
commit 3e2ea1a870
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ namespace waybar::modules {
class IdleInhibitor : public ALabel {
sigc::connection timeout_;
struct ::ext_idle_notification_v1* idle_notification_;
ext_idle_notification_v1* idle_notification_;
uint32_t idle_timeout_ms_;
public:
@@ -26,8 +26,8 @@ class IdleInhibitor : public ALabel {
void toggleStatus();
void setupIdleNotification();
void teardownIdleNotification();
static void handleIdled(void* data, struct ::ext_idle_notification_v1* notification);
static void handleResumed(void* data, struct ::ext_idle_notification_v1* notification);
static void handleIdled(void* data, ext_idle_notification_v1* notification);
static void handleResumed(void* data, ext_idle_notification_v1* notification);
const Bar& bar_;
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,
struct ::ext_idle_notification_v1* /*notification*/) {
ext_idle_notification_v1* /*notification*/) {
spdlog::info("deactivating idle_inhibitor due to user inactivity");
status = false;
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,
struct ::ext_idle_notification_v1* /*notification*/) {
ext_idle_notification_v1* /*notification*/) {
// User became active again - notification will continue monitoring
spdlog::debug("user activity detected, idle_inhibitor still active");
}