summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbwindow.h
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2012-07-17 23:40:45 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-25 00:59:32 +0200
commit597b99305e7c46ffcc83c60b7412bdff4e888500 (patch)
treead558750b062b6b7a968c9b80c8ba757ba02908c /src/plugins/platforms/xcb/qxcbwindow.h
parent958e4e6bec1905f59dbac392dc48203a0a770558 (diff)
Reimplement QXcbWindow::setMask() with xcb
This functionality does not need libXext. The bindings for the shape extension from libxcb-shape is enough and is available without Xlib. Change-Id: I9f1927024c64df00ace1666998c6c6deda2ef782 Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbwindow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.h b/src/plugins/platforms/xcb/qxcbwindow.h
index 0c4ec34269..fa5ae635f9 100644
--- a/src/plugins/platforms/xcb/qxcbwindow.h
+++ b/src/plugins/platforms/xcb/qxcbwindow.h
@@ -109,9 +109,9 @@ public:
bool startSystemResize(const QPoint &pos, Qt::Corner corner);
-#if defined(XCB_USE_XLIB) && !defined(QT_NO_SHAPE)
+#if !defined(QT_NO_SHAPE)
void setMask(const QRegion &region);
-#endif // XCB_USE_XLIB && !QT_NO_SHAPE
+#endif // !QT_NO_SHAPE
xcb_window_t xcb_window() const { return m_window; }
uint depth() const { return m_depth; }