My dwm build
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
1.2 KiB

  1. --- dwm.c
  2. +++ dwm.c
  3. @@ -98,9 +104,11 @@ struct Client {
  4. int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  5. int bw, oldbw;
  6. unsigned int tags;
  7. - int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen;
  8. + int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, isterminal, noswallow;
  9. + pid_t pid;
  10. Client *next;
  11. Client *snext;
  12. + Client *swallowing;
  13. Monitor *mon;
  14. Window win;
  15. };
  16. @@ -314,6 +332,8 @@ applyrules(Client *c)
  17. && (!r->class || strstr(class, r->class))
  18. && (!r->instance || strstr(instance, r->instance)))
  19. {
  20. + c->isterminal = r->isterminal;
  21. + c->noswallow = r->noswallow;
  22. c->isfloating = r->isfloating;
  23. c->tags |= r->tags;
  24. for (m = mons; m && m->num != r->monitor; m = m->next);
  25. @@ -2355,10 +2576,12 @@ main(int argc, char *argv[])
  26. fputs("warning: no locale support\n", stderr);
  27. if (!(dpy = XOpenDisplay(NULL)))
  28. die("dwm: cannot open display");
  29. + if (!(xcon = XGetXCBConnection(dpy)))
  30. + die("dwm: cannot get xcb connection\n");
  31. checkotherwm();
  32. setup();
  33. #ifdef __OpenBSD__
  34. - if (pledge("stdio rpath proc exec", NULL) == -1)
  35. + if (pledge("stdio rpath proc exec ps", NULL) == -1)
  36. die("pledge");
  37. #endif /* __OpenBSD__ */
  38. scan();