diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-10-15 22:03:16 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-10-15 22:14:31 (GMT) |
commit | cdd181ddff47be15d396d05ca41d1ca11f8705fc (patch) | |
tree | 69e691cbfc53c71118c770a36f355fddfb795dcd /src | |
parent | 307a12d9e2a5ec302e44d29c5ba5ca4cf0f7ebff (diff) | |
download | Qt-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')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbmouse.cpp | 2 |
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; |