kwin: Add a function that returns the xcb_connection_t

This commit is contained in:
Fredrik Höglund 2012-03-26 17:14:04 +02:00
parent 22be6de889
commit 4821c15b97

View file

@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kdemacros.h>
#include <X11/Xlib.h>
#include <X11/Xlib-xcb.h>
#include <fixx11h.h>
#include <kwinconfig.h>
@ -132,6 +133,12 @@ KWIN_EXPORT Display* display()
return QX11Info::display();
}
inline
KWIN_EXPORT xcb_connection_t *connection()
{
return XGetXCBConnection(display());
}
inline
KWIN_EXPORT Window rootWindow()
{