diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-17 12:30:50 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-17 12:30:50 +0200 |
commit | 3ed75db9452d4d29bc5f880a50871a7db7ae8955 (patch) | |
tree | a8231fb9dcab275930e1236d67e80d2712c71ec9 /dwmblocks.c | |
parent | update (diff) | |
download | dwmblocks-3ed75db9452d4d29bc5f880a50871a7db7ae8955.tar.gz dwmblocks-3ed75db9452d4d29bc5f880a50871a7db7ae8955.tar.bz2 dwmblocks-3ed75db9452d4d29bc5f880a50871a7db7ae8955.tar.xz dwmblocks-3ed75db9452d4d29bc5f880a50871a7db7ae8955.tar.zst dwmblocks-3ed75db9452d4d29bc5f880a50871a7db7ae8955.zip |
cool
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index 5d7f6cd..378c111 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -20,7 +20,7 @@ void buttonhandler(int sig, siginfo_t *si, void *ucontext); void replace(char *str, char old, char new); void remove_all(char *str, char to_remove); void getcmds(int time); -#ifndef BSD +#ifndef ___OpenBSD___ void getsigcmds(int signal); void setupsignals(); void sighandler(int signum); @@ -134,7 +134,7 @@ void getcmds(int time) } } -#ifndef BSD +#ifndef ___OpenBSD___ void getsigcmds(int signal) { const Block *current; @@ -227,7 +227,7 @@ void pstdout() void statusloop() { -#ifndef BSD +#ifndef ___OpenBSD___ setupsignals(); #endif // first figure out the default wait interval by finding the @@ -261,7 +261,7 @@ void statusloop() } } -#ifndef BSD +#ifndef ___OpenBSD___ void sighandler(int signum) { getsigcmds(signum-SIGRTMIN); @@ -283,7 +283,7 @@ void buttonhandler(int sig, siginfo_t *si, void *ucontext) break; } char shcmd[1024]; - sprintf(shcmd,"%s && kill -%d %d",current->command, current->signal+34,process_id); + sprintf(shcmd,"%s && kill -%d %d",current->command, current->signal+SIGRTMIN,process_id); char *command[] = { "/bin/sh", "-c", shcmd, NULL }; setenv("BLOCK_BUTTON", button, 1); setsid(); |