mirror of
https://github.com/Alexays/Waybar.git
synced 2026-08-18 02:55:00 +00:00
Merge pull request #5197 from VlkrS/openbsd
fix(idle_inhibitor.cpp): Fix build for systems without SIGRTMIN/SIGRTMAX
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user