summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlinputdevice.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-06-03 00:16:17 +0300
committerJørgen Lind <jorgen.lind@nokia.com>2012-06-04 09:24:22 +0200
commita2b92975b2f0f3b0a2a34592cf6f1b47b6064e66 (patch)
treeaf5cbaa38f4e85c1fe3841e7cfe325fbc0d74339 /src/compositor/wayland_wrapper/wlinputdevice.cpp
parent9fb4d091c5ed07ce4d82c1090dccbcbe98910487 (diff)
Bump sha
keyboard_modifiers is not yet sent from server side (in qt-compositor) on keyboard focus, this needs to be added later. Unfortunately the event is somewhat libxkbcommon-specific... Also move/removed some unused variables. Change-Id: Id971bdc3a0e217740593d23145fc4ebb27d99a06 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlinputdevice.cpp')
-rw-r--r--src/compositor/wayland_wrapper/wlinputdevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/wlinputdevice.cpp b/src/compositor/wayland_wrapper/wlinputdevice.cpp
index a38057c98..29bfb5706 100644
--- a/src/compositor/wayland_wrapper/wlinputdevice.cpp
+++ b/src/compositor/wayland_wrapper/wlinputdevice.cpp
@@ -263,7 +263,7 @@ void InputDevice::sendMouseWheelEvent(Qt::Orientation orientation, int delta)
uint32_t time = m_compositor->currentTimeMsecs();
uint32_t axis = orientation == Qt::Horizontal ? WL_POINTER_AXIS_HORIZONTAL_SCROLL
: WL_POINTER_AXIS_VERTICAL_SCROLL;
- wl_pointer_send_axis(resource, time, axis, delta / 120);
+ wl_pointer_send_axis(resource, time, axis, wl_fixed_from_double(delta / 120.0));
}
void InputDevice::sendKeyPressEvent(uint code)