From owner-freebsd-ports Thu Aug 15 6:33: 1 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 001DA37B400; Thu, 15 Aug 2002 06:32:56 -0700 (PDT) Received: from smtp3.southeast.rr.com (smtp3.southeast.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71F2243E6A; Thu, 15 Aug 2002 06:32:56 -0700 (PDT) (envelope-from bts@fake.com) Received: from mail7.nc.rr.com (fe7 [24.93.67.54]) by smtp3.southeast.rr.com (8.12.5/8.12.2) with ESMTP id g7FDWfga009548; Thu, 15 Aug 2002 09:32:41 -0400 (EDT) Received: from this.is.fake.com ([66.26.254.93]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Thu, 15 Aug 2002 09:32:55 -0400 Received: by this.is.fake.com (Postfix, from userid 111) id 88071BB34; Thu, 15 Aug 2002 09:32:34 -0400 (EDT) From: "Brian T. Schellenberger" To: freebsd-ports@freebsd.org, shige@freebsd.org Subject: xv patch for refresh problem Date: Thu, 15 Aug 2002 09:32:34 -0400 User-Agent: KMail/1.4.2 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_AA0WVHJU4YTUHVYB274E" Message-Id: <200208150932.34230.bts@babbleon.org> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --------------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