idle_inhibitor.cpp: Fix build for systems without SIGRTMIN/SIGRTMAX

See https://github.com/Alexays/Waybar/pull/4992 for reference
This commit is contained in:
Volker Schlecht
2026-07-11 23:36:59 +02:00
committed by GitHub
parent 98b2a563f3
commit 795047ba8b
+2
View File
@@ -103,6 +103,7 @@ auto waybar::modules::IdleInhibitor::update() -> void {
}
auto waybar::modules::IdleInhibitor::refresh(int sig) -> void {
#ifdef SIGRTMIN
if (config_["signal"].isInt() && sig == SIGRTMIN + config_["signal"].asInt()) {
toggleStatus();
@@ -111,6 +112,7 @@ auto waybar::modules::IdleInhibitor::refresh(int sig) -> void {
module->update();
}
}
#endif
}
void waybar::modules::IdleInhibitor::toggleStatus(int force_status) {