X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffg_main_x11.c;h=8387ba8b6b08b56d65d2bb646426c3d370877b2d;hb=75ee380e8ec27aad5c793bb8d966efd927d82cba;hp=8a8514e2f1d8918220319b9699adeb354780b2cc;hpb=0e653a9d94fec583f7a4172b721c1c599e06cbc8;p=freeglut diff --git a/src/x11/fg_main_x11.c b/src/x11/fg_main_x11.c index 8a8514e..8387ba8 100644 --- a/src/x11/fg_main_x11.c +++ b/src/x11/fg_main_x11.c @@ -73,9 +73,7 @@ static Bool match_motion(Display *dpy, XEvent *xev, XPointer arg); /* - * Handle a window configuration change. When no reshape - * callback is hooked, the viewport size is updated to - * match the new window size. + * Request a window resize */ void fgPlatformReshapeWindow ( SFG_Window *window, int width, int height ) { @@ -630,10 +628,11 @@ void fgPlatformProcessSingleEvent ( void ) switch( event.type ) { case ClientMessage: - if(fgIsSpaceballXEvent(&event)) { - fgSpaceballHandleXEvent(&event); - break; - } + if (fgStructure.CurrentWindow) + if(fgIsSpaceballXEvent(&event)) { + fgSpaceballHandleXEvent(&event); + break; + } /* Destroy the window when the WM_DELETE_WINDOW message arrives */ if( (Atom) event.xclient.data.l[ 0 ] == fgDisplay.pDisplay.DeleteWindow ) {