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

Function XSetEventQueueOwner

server/faker-xcb.cpp:569–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567
568
569void XSetEventQueueOwner(Display *dpy, enum XEventQueueOwner owner)
570{
571 xcb_connection_t *conn = NULL;
572
573 TRY();
574
575 if(faker::deadYet || faker::isDisplayExcluded(dpy))
576 return _XSetEventQueueOwner(dpy, owner);
577
578 /////////////////////////////////////////////////////////////////////////////
579 OPENTRACE(XSetEventQueueOwner); PRARGD(dpy); PRARGI(owner); STARTTRACE();
580 /////////////////////////////////////////////////////////////////////////////
581
582 if(fconfig.fakeXCB)
583 {
584 conn = _XGetXCBConnection(dpy);
585 if(conn)
586 {
587 if(owner == XCBOwnsEventQueue) XCBCONNHASH.add(conn, dpy);
588 else XCBCONNHASH.remove(conn);
589 }
590 }
591 _XSetEventQueueOwner(dpy, owner);
592
593 /////////////////////////////////////////////////////////////////////////////
594 STOPTRACE(); if(fconfig.fakeXCB) PRARGX(conn); CLOSETRACE();
595 /////////////////////////////////////////////////////////////////////////////
596
597 CATCH();
598}
599
600} // extern "C"
601

Callers 1

subWinTestFunction · 0.85

Calls 3

isDisplayExcludedFunction · 0.85
addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected