Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2002 09:32:34 -0400
From:      "Brian T. Schellenberger" <bts@babbleon.org>
To:        freebsd-ports@freebsd.org, shige@freebsd.org
Subject:   xv patch for refresh problem
Message-ID:  <200208150932.34230.bts@babbleon.org>

next in thread | raw e-mail | index | archive | help

--------------Boundary-00=_AA0WVHJU4YTUHVYB274E
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 8bit


[ooops . . . Hit send too soon. Forgot the primary recipient. Sorta 
important.]


There is a bug in xv 3.10a that causes it not to refresh properly with recent 
releases of XFree86 and FreeBSD.  (Eg, it started getting really bad when I 
upgraded to FreeBSD 4.6 and XFree86 4.2.)

The attached patch will fix it up.

I have submitted this patch to the xv folks but since 3.10a is nearly a decade 
old, I think that it would be good to incorporate this patch into the port 
patch-set as well.

If this is not the right way to make this happen, please let me know.

The patch is attached.  (It wraps if I try to put it in-line.)
This is actually a patch to the xv.c file as patched by the current FreeBSD 
patchset rather than as patched from the original xv.c file.  If the patch 
should be against the original xv.c file let me know and I can readily 
generate that patch, but I think it'll probably apply just fine either way.



-- 
Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
                                        http://www.babbleon.org

http://www.eff.org                      http://www.programming-freedom.org 

--------------Boundary-00=_AA0WVHJU4YTUHVYB274E
Content-Type: text/x-diff;
  charset="us-ascii";
  name="xv-patches"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="xv-patches"

--- xv.c.old    Mon Aug 12 00:01:50 2002
+++ xv.c        Wed Aug 14 23:05:52 2002
@@ -2784,7 +2784,11 @@
      to generate the correct exposes (particularly with 'BitGravity' turned
      on */
 
-  if (mainW && !useroot) GenExpose(mainW, 0, 0, (u_int) eWIDE, (u_int) eHIGH);
+  /*Brian T. Schellenberger: fix for X 4.2 refresh problem*/
+  if (mainW && !useroot) {
+    XSync(theDisp, False);
+    GenExpose(mainW, 0, 0, (u_int) eWIDE, (u_int) eHIGH);
+  }
 
   return 1;
 


--------------Boundary-00=_AA0WVHJU4YTUHVYB274E--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208150932.34230.bts>