From 622845bb976981c7089a268c354e9d1fba930e52 Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Thu, 30 Jun 2005 11:45:34 +0000 Subject: [PATCH] Ooops, forgot to dump a few fields in some events... git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@647 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_main.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/freeglut_main.c b/src/freeglut_main.c index ec86e80..d9172c7 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -725,31 +725,34 @@ static void fghPrintEvent( XEvent *event ) "%02x", e->key_vector[ i ] ); } buf[ i ] = '\0'; - fgWarning( "%s: %s", fghTypeToString( e->type ), buf ); + fgWarning( "%s: window=0x%x, %s", fghTypeToString( e->type ), e->window, + buf ); break; } case Expose: { XExposeEvent *e = &event->xexpose; - fgWarning( "%s: (x,y)=(%d,%d), (width,height)=(%d,%d), count=%d", - fghTypeToString( e->type ), e->x, e->y, e->width, e->height, - e->count ); + fgWarning( "%s: window=0x%x, (x,y)=(%d,%d), (width,height)=(%d,%d), " + "count=%d", fghTypeToString( e->type ), e->window, e->x, + e->y, e->width, e->height, e->count ); break; } case GraphicsExpose: { XGraphicsExposeEvent *e = &event->xgraphicsexpose; - fgWarning( "%s: (x,y)=(%d,%d), (width,height)=(%d,%d), count=%d, " - "(major_code,minor_code)=(%d,%d)", - fghTypeToString( e->type ), e->x, e->y, e->width, e->height, - e->count, e->major_code, e->minor_code ); + fgWarning( "%s: drawable=0x%x, (x,y)=(%d,%d), (width,height)=(%d,%d), " + "count=%d, (major_code,minor_code)=(%d,%d)", + fghTypeToString( e->type ), e->drawable, e->x, e->y, + e->width, e->height, e->count, e->major_code, + e->minor_code ); break; } case NoExpose: { XNoExposeEvent *e = &event->xnoexpose; - fgWarning( "%s: (major_code,minor_code)=(%d,%d)", - fghTypeToString( e->type ), e->major_code, e->minor_code ); + fgWarning( "%s: drawable=0x%x, (major_code,minor_code)=(%d,%d)", + fghTypeToString( e->type ), e->drawable, e->major_code, + e->minor_code ); break; } -- 1.7.10.4