Guest User

fix-wmii-screen-resolution-change.patch

a guest
Apr 1st, 2011
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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,9 @@
  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. + || Dy(r) == 0 && (!f->area->max || resizing)
  13. + && !f->collapsed) {
  14. r.max.x = min(r.min.x+1, r.max.x);
  15. r.max.y = min(r.min.y+1, r.max.y);
  16. }
  17. --- wmii+ixp-3.9.2/cmd/wmii/x11.c~ 2011-04-01 11:57:00.000000000 +0000
  18. +++ wmii+ixp-3.9.2/cmd/wmii/x11.c 2011-04-01 12:24:23.000000000 +0000
  19. @@ -378,9 +378,8 @@
  20. void
  21. reshapewin(Window *w, Rectangle r) {
  22. assert(w->type == WWindow);
  23. - assert(Dx(r) > 0 && Dy(r) > 0); /* Rather than an X error. */
  24. -
  25. - configwin(w, r, w->border);
  26. + if (Dx(r) > 0 && Dy(r) > 0)
  27. + configwin(w, r, w->border);
  28. }
  29.  
  30. void
RAW Paste Data