From 4b9cf0379ff320dd77b7957ad1865187a8bc3562 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Wed, 22 Apr 2015 19:12:34 +0300 Subject: xcb: Export RootWindow to QXcbNativeInterface::nativeResourceForScreen() Change-Id: I0ad74de8aef7d8a3cb707b61438096c67cd7626e Reviewed-by: David Faure --- src/plugins/platforms/xcb/qxcbnativeinterface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp index 1629f3013c..dfb0a125e2 100644 --- a/src/plugins/platforms/xcb/qxcbnativeinterface.cpp +++ b/src/plugins/platforms/xcb/qxcbnativeinterface.cpp @@ -248,6 +248,9 @@ void *QXcbNativeInterface::nativeResourceForScreen(const QByteArray &resourceStr case NoFontHinting: result = xcbScreen->noFontHinting() ? this : 0; //qboolptr... break; + case RootWindow: + result = reinterpret_cast(xcbScreen->root()); + break; default: break; } -- cgit v1.2.3