summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qdnd_x11.cpp
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-04-30 15:44:47 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-03 22:49:37 +0200
commit00ac402870730592965a41567bb4d577fc441f82 (patch)
treeb09e76547d6a53dd0c716352f5cb4242e98fe745 /src/gui/kernel/qdnd_x11.cpp
parenta03c9f329e86cace6557fc68dac8b89a15993ee4 (diff)
Fix compilation error on old Unix systems caused by ShapeInput
Change 33bb996c83e541c26df632b3e8883a1190cc97f0 caused a build error on Solaris/HP-UX (at least) as ShapeInput type is not present in default system headers. Change-Id: I6e19351651856ed71bc9ceaeae625ceac74b27b0 Reviewed-by: Albert Astals Cid <albert.astals@canonical.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Diffstat (limited to 'src/gui/kernel/qdnd_x11.cpp')
-rw-r--r--src/gui/kernel/qdnd_x11.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qdnd_x11.cpp b/src/gui/kernel/qdnd_x11.cpp
index 4a9841906d..b312d7eada 100644
--- a/src/gui/kernel/qdnd_x11.cpp
+++ b/src/gui/kernel/qdnd_x11.cpp
@@ -1465,8 +1465,10 @@ Window findRealWindow(const QPoint & pos, Window w, int md)
if (type) {
// When ShapeInput and ShapeBounding are not set they return a single rectangle with the geometry of the window, this is why we
// need an && here so that in the case one is set and the other is not we still get the correct result.
-#if !defined(Q_OS_SOLARIS)
+#if defined(ShapeInput) && defined(ShapeBounding)
windowContainsMouse = windowInteractsWithPosition(pos, w, ShapeInput) && windowInteractsWithPosition(pos, w, ShapeBounding);
+#elif defined(ShapeBounding)
+ windowContainsMouse = windowInteractsWithPosition(pos, w, ShapeBounding);
#endif
if (windowContainsMouse)
return w;