KWin expects Qt to produce xcb_glx_buffer_swap_complete_event_t
events with DRI2, but Qt 5.12 initializes GLX integration only
when required, e.g. when a window with OpenGL support is
created or when availability of OpenGL is checked.
So use QOpenGLContext::supportsThreadedOpenGL() to force
initialization of GLX integration in the Qt's xcb plugin.
https://bugzilla.opensuse.org/show_bug.cgi?id=1120090