apoorv569

dwm.c edited

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