summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbnativeinterface.h
diff options
context:
space:
mode:
authorMartin Gräßlin <mgraesslin@kde.org>2013-09-02 20:41:54 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-17 14:35:59 +0200
commit9c3b79200b4bb413a27e4341d7c201c1799e2ef0 (patch)
tree2d8e49567f75bc5570b59ce5770987666cd59276 /src/plugins/platforms/xcb/qxcbnativeinterface.h
parent75ffb131ed13183ef65a04e12d7506dedc0f1aaa (diff)
Export x11 screen of the QXcbConnection to the native interface
With XCB a client cannot retrieve the information on which X screen it is running. This information is only available when opening the xcb connection. As this is done by Qt no application is able to retrieve this information. By exporting the x11 screen we can provide this information again in QtX11Extras. Change-Id: I50f1d3e803dc7e3afac0e5c7f1648ccda4502e7c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbnativeinterface.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbnativeinterface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.h b/src/plugins/platforms/xcb/qxcbnativeinterface.h
index 86b94e62e4..aec78087f5 100644
--- a/src/plugins/platforms/xcb/qxcbnativeinterface.h
+++ b/src/plugins/platforms/xcb/qxcbnativeinterface.h
@@ -70,7 +70,8 @@ public:
ScreenHintStyle,
StartupId,
TrayWindow,
- GetTimestamp
+ GetTimestamp,
+ X11Screen
};
QXcbNativeInterface();
@@ -94,6 +95,7 @@ public:
void *appUserTime(const QXcbScreen *screen);
void *getTimestamp(const QXcbScreen *screen);
void *startupId();
+ void *x11Screen();
static void setAppTime(QScreen *screen, xcb_timestamp_t time);
static void setAppUserTime(QScreen *screen, xcb_timestamp_t time);
static void *eglContextForContext(QOpenGLContext *context);