nanogui: Bug in srvclip2.c


Previous by date: 3 Oct 2000 00:01:37 -0000 Re: simple window manager for Microwindows wanted, Greg Haerr
Next by date: 3 Oct 2000 00:01:37 -0000 Re: Bug in srvclip2.c, Greg Haerr
Previous in thread:
Next in thread: 3 Oct 2000 00:01:37 -0000 Re: Bug in srvclip2.c, Greg Haerr

Subject: Bug in srvclip2.c
From: ####@####.####
Date: 3 Oct 2000 00:01:37 -0000
Message-Id: <Pine.LNX.4.10.10010031051540.17255-200000@helios.devel.igelaus.com.au>

Hello,

Here is a patch that fixes a bug in srvclip2.c which caused the user
region to be offset by a windows parent and not the current drawing
window.

On another note. I have almost finished a port of Mozilla to Nano-X. But I
have run into some problems. Any help would be appreciated greatly.

1. I need to be able to get a list of font names currently available. This
is for the font preferneces in Mozilla

and 

2. I need to be able to set a timeout value for the GrGetNextEvent
function so I can implement the Mozilla timer functionallity. This will
enable me to do animated images.

When these last requirements are met, the code will be released and free
to use under the Mozilla Public License.

Thanking you in advance
Peter Hartshorn

PS: I had originally attached a jpg of Mozilla running in Nano-X, but it
was rejected.

--- srvclip2.c.broken	Tue Oct  3 08:55:36 2000
+++ srvclip2.c	Tue Oct  3 08:56:34 2000
@@ -21,6 +21,7 @@
 void
 GsSetClipWindow(GR_WINDOW *wp, MWCLIPREGION *userregion)
 {
+	GR_WINDOW	*tmpwp;		/* temporary window pointer */
 	GR_WINDOW	*pwp;		/* parent window */
 	GR_WINDOW	*sibwp;		/* sibling windows */
 	GR_COORD	minx;		/* minimum clip x coordinate */
@@ -102,6 +103,7 @@
 	 * that can obscure us are the earlier siblings of all of
 	 * our parents.
  	 */
+	tmpwp = wp;
 	pwp = wp;
 /*while (pwp != rootwp) {*/
 	while (pwp != NULL) {
@@ -132,6 +134,7 @@
 break;
 	}
 
+	wp = tmpwp;
 	/*
 	 * Intersect with user region, if set.
 	 */

Previous by date: 3 Oct 2000 00:01:37 -0000 Re: simple window manager for Microwindows wanted, Greg Haerr
Next by date: 3 Oct 2000 00:01:37 -0000 Re: Bug in srvclip2.c, Greg Haerr
Previous in thread:
Next in thread: 3 Oct 2000 00:01:37 -0000 Re: Bug in srvclip2.c, Greg Haerr


Powered by ezmlm-browse 0.20.