Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. diff --git a/dmenu.c b/dmenu.c
  2. index 65f25ce..80475c2 100644
  3. --- a/dmenu.c
  4. +++ b/dmenu.c
  5. @@ -153,8 +153,10 @@ drawmenu(void)
  6.  
  7. if (lines > 0) {
  8. /* draw vertical list */
  9. - for (item = curr; item != next; item = item->right)
  10. + int i = 0;
  11. + for (item = curr; item != next; item = item->right, i++)
  12. drawitem(item, x, y += bh, mw - x);
  13. + XResizeWindow(dpy, win, mw, (i + 1) * bh);
  14. } else if (matches) {
  15. /* draw horizontal list */
  16. x += inputw;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement