fixed the type declarations
This commit is contained in:
@@ -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_;
|
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, ext_idle_notification_v1* notification);
|
||||||
static void handleResumed(void* data, struct ::ext_idle_notification_v1* notification);
|
static void handleResumed(void* data, 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_;
|
||||||
|
|||||||
@@ -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*/) {
|
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*/) {
|
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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user