kwin: Add a function that returns the xcb_connection_t
This commit is contained in:
parent
22be6de889
commit
4821c15b97
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include <kdemacros.h>
|
#include <kdemacros.h>
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/Xlib-xcb.h>
|
||||||
#include <fixx11h.h>
|
#include <fixx11h.h>
|
||||||
|
|
||||||
#include <kwinconfig.h>
|
#include <kwinconfig.h>
|
||||||
|
@ -132,6 +133,12 @@ KWIN_EXPORT Display* display()
|
||||||
return QX11Info::display();
|
return QX11Info::display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline
|
||||||
|
KWIN_EXPORT xcb_connection_t *connection()
|
||||||
|
{
|
||||||
|
return XGetXCBConnection(display());
|
||||||
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
KWIN_EXPORT Window rootWindow()
|
KWIN_EXPORT Window rootWindow()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue