[teklib-general] teklib: Added graphics exposure events

hg-notify at neoscientists.org hg-notify at neoscientists.org
Mon Jan 7 16:10:19 CET 2008


details:   http://hg.teklib.org/teklib/rev/3d7c2eb71921
changeset: 147:3d7c2eb71921
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Mon Jan 07 16:09:26 2008 +0100
description:
Added graphics exposure events

diffs (27 lines):

diff -r 19417dc7c0ae -r 3d7c2eb71921 src/display_x11/display_x11_api.c
--- a/src/display_x11/display_x11_api.c	Tue Jan 01 17:39:50 2008 +0100
+++ b/src/display_x11/display_x11_api.c	Mon Jan 07 16:09:26 2008 +0100
@@ -117,11 +117,9 @@ x11_openvisual(TMOD_X11 *mod, struct TVR
 			"WM_DELETE_WINDOW", True);
 		XSetWMProtocols(mod->x11_Display, v->window, &v->atom_wm_delete_win, 1);
 
-		//gcv.font = fn->font->fid;
 		gcv.function = GXcopy;
 		gcv.fill_style = FillSolid;
-		gcv.graphics_exposures = False;
-		//gcv_mask = GCFont | GCFunction | GCFillStyle | GCGraphicsExposures;
+		gcv.graphics_exposures = True;
 		gcv_mask = GCFunction | GCFillStyle | GCGraphicsExposures;
 
 		v->gc = XCreateGC(mod->x11_Display, v->window, gcv_mask, &gcv);
diff -r 19417dc7c0ae -r 3d7c2eb71921 src/display_x11/display_x11_inst.c
--- a/src/display_x11/display_x11_inst.c	Tue Jan 01 17:39:50 2008 +0100
+++ b/src/display_x11/display_x11_inst.c	Mon Jan 07 16:09:26 2008 +0100
@@ -598,6 +598,7 @@ x11_processvisualevent(TMOD_X11 *mod, VI
 			}
 			break;
 
+		case GraphicsExpose:
 		case Expose:
 			/* remap an area */
 			if ((v->eventmask & TITYPE_REFRESH)


More information about the teklib-general mailing list