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:
@@ -103,6 +103,7 @@ auto waybar::modules::IdleInhibitor::update() -> void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto waybar::modules::IdleInhibitor::refresh(int sig) -> void {
|
auto waybar::modules::IdleInhibitor::refresh(int sig) -> void {
|
||||||
|
#ifdef SIGRTMIN
|
||||||
if (config_["signal"].isInt() && sig == SIGRTMIN + config_["signal"].asInt()) {
|
if (config_["signal"].isInt() && sig == SIGRTMIN + config_["signal"].asInt()) {
|
||||||
toggleStatus();
|
toggleStatus();
|
||||||
|
|
||||||
@@ -111,6 +112,7 @@ auto waybar::modules::IdleInhibitor::refresh(int sig) -> void {
|
|||||||
module->update();
|
module->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void waybar::modules::IdleInhibitor::toggleStatus(int force_status) {
|
void waybar::modules::IdleInhibitor::toggleStatus(int force_status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user