summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-10-15 22:03:16 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-10-15 22:14:31 (GMT)
commitcdd181ddff47be15d396d05ca41d1ca11f8705fc (patch)
tree69e691cbfc53c71118c770a36f355fddfb795dcd /src/plugins/gfxdrivers/directfb
parent307a12d9e2a5ec302e44d29c5ba5ca4cf0f7ebff (diff)
downloadQt-cdd181ddff47be15d396d05ca41d1ca11f8705fc.zip
Qt-cdd181ddff47be15d396d05ca41d1ca11f8705fc.tar.gz
Qt-cdd181ddff47be15d396d05ca41d1ca11f8705fc.tar.bz2
Don't trust layer when using window_as_cursor
When using QT_DIRECTFB_WINDOW_AS_CURSOR it's likely that the layer doesn't properly support the mouse. Seeing as one might still very well have layer support for windows I can't tie the event parsing solely to NO_DIRECTFB_LAYER. Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbmouse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbmouse.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbmouse.cpp
index 8662df6..57b1950 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbmouse.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbmouse.cpp
@@ -207,7 +207,7 @@ void QDirectFBMouseHandlerPrivate::readMouseData()
int wheel = 0;
if (input.type == DIET_AXISMOTION) {
-#ifdef QT_NO_DIRECTFB_LAYER
+#if defined(QT_NO_DIRECTFB_LAYER) || defined(QT_DIRECTFB_WINDOW_AS_CURSOR)
if (input.flags & DIEF_AXISABS) {
switch (input.axis) {
case DIAI_X: x = input.axisabs; break;