[Xcb] Casting events.

Jeremy Kolb jkolb at brandeis.edu
Tue Feb 8 19:44:27 PST 2005


RandR has a ScreenChangeNotifyEvent.  Now I have an XCBGenericEvent and 
when there's a ScreenChangeNotifyEvent I cast the XCBGenericEvent. 
However this results in a loss of information on certain fields.  Is 
there any other way to do this or am I doing it incorrectly?

	switch (event->response_type - event_base) {
	case XCBRandRScreenChangeNotify:
	  sce = (XCBRandRScreenChangeNotifyEvent *) &event;



Jeremy


More information about the xcb mailing list