apoorv569

dwm.c edit req

Jun 2nd, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. } else if (ev->x < x + blw)
  2.             click = ClkLtSymbol;
  3. -       else if (ev->x > selmon->ww - TEXTW(stext) - getsystraywidth())
  4. +       else if (ev->x > (x = selmon->ww - TEXTW(stext) + lrpad)) {
  5.             click = ClkStatusText;
  6. +
  7. +           char *text = rawstext;
  8. +           int i = -1;
  9. +           char ch;
  10. +           dwmblockssig = 0;
  11. +           statuscmdn = 0;
  12. +           while (text[++i]) {
  13. +               if ((unsigned char)text[i] < ' ') {
  14. +                   ch = text[i];
  15. +                   text[i] = '\0';
  16. +                   x += TEXTW(text) - lrpad;
  17. +                   text[i] = ch;
  18. +                   text += i+1;
  19. +                   i = -1;
  20. +                   if (x >= ev->x) break;
  21. +                   dwmblockssig = ch;
  22. +                   if (ch <= LENGTH(statuscmds)) statuscmdn = ch - 1;
  23. +               }
  24. +           }
  25. +       } else
  26. +
Add Comment
Please, Sign In to add comment