Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if (ev->x < x + blw)
- click = ClkLtSymbol;
- else if (ev->x > selmon->ww - TEXTW(stext) - getsystraywidth())
- click = ClkStatusText;
- else if (ev->x > (x = selmon->ww - TEXTW(stext) + lrpad)) {
- click = ClkStatusText;
- char *text = rawstext;
- int i = -1;
- char ch;
- dwmblockssig = 0;
- statuscmdn = 0;
- while (text[++i]) {
- if ((unsigned char)text[i] < ' ') {
- ch = text[i];
- text[i] = '\0';
- x += TEXTW(text) - lrpad;
- text[i] = ch;
- text += i+1;
- i = -1;
- if (x >= ev->x) break;
- dwmblockssig = ch;
- if (ch <= LENGTH(statuscmds)) statuscmdn = ch - 1;
- }
- }
- } else
Add Comment
Please, Sign In to add comment