MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / event_loop

Function event_loop

demos/testgl5.c:265–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263*/
264
265static void event_loop( Display *dpy )
266{
267 XEvent eventHolder;
268 XEvent *event = &eventHolder;
269
270 while (1) {
271 XNextEvent( dpy, event );
272
273 switch (event->type) {
274 case ConfigureNotify:
275 configure( event->xconfigure.width, event->xconfigure.height );
276 break;
277 default:
278 break;
279 }
280 }
281}
282
283static Window make_rgb_db_window( Display *dpy,
284 unsigned int width, unsigned int height )

Callers 1

mainFunction · 0.70

Calls 2

XNextEventFunction · 0.85
configureFunction · 0.85

Tested by

no test coverage detected