mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
Support upto 256 click events on a block. Fixes #32
This commit is contained in:
parent
647080cbed
commit
6a97f4d0c5
3
main.c
3
main.c
@ -201,7 +201,8 @@ void signalHandler() {
|
|||||||
|
|
||||||
for (int j = 0; j < LEN(blocks); j++) {
|
for (int j = 0; j < LEN(blocks); j++) {
|
||||||
if (blocks[j].signal == signal - SIGRTMIN) {
|
if (blocks[j].signal == signal - SIGRTMIN) {
|
||||||
char button[] = {'0' + info.ssi_int & 0xff, 0};
|
char button[4]; // value can't be more than 255;
|
||||||
|
sprintf(button, "%d", info.ssi_int & 0xff);
|
||||||
execBlock(j, button);
|
execBlock(j, button);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user