From 4821c15b976a9db2beb3cc25e392079ec6963ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 26 Mar 2012 17:14:04 +0200 Subject: [PATCH] kwin: Add a function that returns the xcb_connection_t --- libkwineffects/kwinglobals.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libkwineffects/kwinglobals.h b/libkwineffects/kwinglobals.h index e1507d75bf..b1b789630f 100644 --- a/libkwineffects/kwinglobals.h +++ b/libkwineffects/kwinglobals.h @@ -28,6 +28,7 @@ along with this program. If not, see . #include #include +#include #include #include @@ -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() {