Advertisement
Guest User

fix-wmii-resolution-change-2.patch

a guest
Apr 1st, 2011
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. --- wmii+ixp-3.9.2/cmd/wmii/frame.c~ 2011-04-01 12:28:23.000000000 +0000
  2. +++ wmii+ixp-3.9.2/cmd/wmii/frame.c 2011-04-01 12:29:20.000000000 +0000
  3. @@ -343,10 +343,11 @@
  4. Rectangle fr, cr;
  5. int collapsed, dx;
  6.  
  7. - if(btassert("8 full", Dx(r) <= 0 || Dy(r) < 0
  8. - || Dy(r) == 0 && (!f->area->max || resizing)
  9. - && !f->collapsed)) {
  10. - fprint(2, "Frame rect: %R\n", r);
  11. + if(Dx(r) <= 0 || Dy(r) < 0)
  12. + return;
  13. +
  14. + if(Dy(r) == 0 && (!f->area->max || resizing)
  15. + && !f->collapsed) {
  16. r.max.x = min(r.min.x+1, r.max.x);
  17. r.max.y = min(r.min.y+1, r.max.y);
  18. }
  19. --- wmii+ixp-3.9.2/cmd/wmii/x11.c~ 2011-04-01 11:57:00.000000000 +0000
  20. +++ wmii+ixp-3.9.2/cmd/wmii/x11.c 2011-04-01 12:24:23.000000000 +0000
  21. @@ -378,9 +378,8 @@
  22. void
  23. reshapewin(Window *w, Rectangle r) {
  24. assert(w->type == WWindow);
  25. - assert(Dx(r) > 0 && Dy(r) > 0); /* Rather than an X error. */
  26. -
  27. - configwin(w, r, w->border);
  28. + if (Dx(r) > 0 && Dy(r) > 0)
  29. + configwin(w, r, w->border);
  30. }
  31.  
  32. void
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement