Make Xcbutils and KWindowSystem take explicit xcb_connection_t
At the moment, both Xcbutils (src/utils/xcbutils.h) and KWindowSystem rely on a global xcb_connection_t
connection. This blocks features such as an Xwayland server per app, which can be used to implement mixed dpi support for legacy X11 apps and improve security as X11 clients will be isolated.
But first, we need to remove all the implicit global state and pass the xcb connection explicitly. Adjusting src/utils/xcbutils.h should be trivial, but KWindowSystem will be a hard nut to crack.
Edited by Vlad Zahorodnii