[Mesa-dev] [Bug 35945] GLX contexts are not resized properly when using XCBOwnsEventQueue
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jan 6 00:01:22 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=35945
--- Comment #4 from Samuel Rødal <srodal at gmail.com> 2012-01-06 00:01:22 PST ---
For the record, here's what the current work-around in Qt looks like:
#ifdef XCB_USE_XLIB
if (!handled) {
// Check if a custom XEvent constructor was registered in xlib for this
event type, and call it discarding the constructed XEvent if any.
// XESetWireToEvent might be used by libraries to intercept messages
from the X server e.g. the OpenGL lib waiting for DRI2 events.
Bool (*proc)(Display*, XEvent*, xEvent*) =
XESetWireToEvent((Display*)m_xlib_display, response_type, 0);
if (proc) {
XESetWireToEvent((Display*)m_xlib_display, response_type, proc);
XEvent dummy;
event->sequence = LastKnownRequestProcessed(m_xlib_display);
proc((Display*)m_xlib_display, &dummy, (xEvent*)event);
}
}
#endif
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list