model_server/gala/src/subwin.cxx
/*
 * Handle X Event
 *
 * Determine wether the given X event is for one of our windows and
 * handle appropriately
 */
Handle X Event
Determine wether the given X event is for one of our windows and
handle appropriately
Handle X Event Determine wether the given X event is for one of our windows and handle appropriately
static void _subwinHandleXEvent(XEvent *xevent)
{
    subwin	*subwin_;
#ifndef _WIN32
    if (xevent->xany.window == None)
    {
	    (*_subwinOldXHandlerProc)(xevent);
    }
    else
    {
        subwin_ = (subwin *)
	  _subwinDict->GetElem((void *) xevent->xany.window);
	if (subwin_ != NULL)
	{
        printf ("2-%08x = window\n", xevent->xany.window);
	}
	else
	{
	    (*_subwinOldXHandlerProc)(xevent);
	}
    }
#else
#endif
}
static void _subwinHandleXEvent ( XEvent * xevent ) { subwin * subwin_ ; #ifndef _WIN32 if ( xevent -> xany . window == None ) { ( * _subwinOldXHandlerProc ) ( xevent ) ; } else { subwin_ = ( subwin * ) _subwinDict -> GetElem ( ( void * ) xevent -> xany . window ) ; if ( subwin_ != NULL ) { printf ( " \n " , xevent -> xany . window ) ; } else { ( * _subwinOldXHandlerProc ) ( xevent ) ; } } #else #endif }
Handle X Event
 Determine wether the given X event is for one of our windows and
 handle appropriately
Handle X Event Determine wether the given X event is for one of our windows and handle appropriately
//printf ("1-%08x = window\n", xevent->xany.window); //vdebugMWarn(("XEvent with 0 for window\n")); //vdebugMWarn(("event type: %d\n", xevent->type)); // X Event Handling code for our subwin goes here // Not us.  Let Galaxy have it. //printf ("3-%08x = window\n", xevent->xany.window); //(*_subwinOldXHandlerProc)(xevent);