mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
fix: Ensure that all blocks execute on SIGUSR1. (closes #63)
This commit is contained in:
parent
dea248b824
commit
8ebe985db8
@ -69,7 +69,7 @@ static int trigger_event(block *const blocks, const unsigned short block_count,
|
||||
|
||||
static int refresh_callback(block *const blocks,
|
||||
const unsigned short block_count) {
|
||||
if (execute_blocks(blocks, block_count, 0) != 0) {
|
||||
if (execute_blocks(blocks, block_count, NULL) != 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ int timer_arm(timer *const timer) {
|
||||
}
|
||||
|
||||
bool timer_must_run_block(const timer *const timer, const block *const block) {
|
||||
if (timer->time == timer->reset_value) {
|
||||
if (timer == NULL || timer->time == timer->reset_value) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user