summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbconnection.h
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@qt.io>2017-06-08 18:54:53 +0200
committerGatis Paeglis <gatis.paeglis@qt.io>2017-07-18 13:19:03 +0000
commit900abb116d6f47e71bc2bdfa57553dd91786edf7 (patch)
tree94d06aca51a1f2492a163c510d0ef14cd4abf23e /src/plugins/platforms/xcb/qxcbconnection.h
parent46001e6f491640b340dd43c0da464aef9978f9d1 (diff)
xcb: allow to change XInput device properties at runtime
xinput list-props <device-id> xinput set-prop <device-id> <atom-id> n n n Example: xinput list-props 9 .. Evdev Scrolling Distance (274): 1, 1, 1 .. xinput set-prop 9 274 8 1 1 [ChangeLog][Platform Specific Changes][Linux] XInput device property changes are now detected at runtime (no application restart required). Change-Id: I4d2455eef70857bc2e35c27011a3808a78fa960f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h
index 633912125f..15743c6328 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.h
+++ b/src/plugins/platforms/xcb/qxcbconnection.h
@@ -547,6 +547,7 @@ private:
bool m_xi2Enabled = false;
int m_xi2Minor = -1;
void initializeXInput2();
+ void xi2SetupDevice(void *info, bool removeExisting = true);
void xi2SetupDevices();
struct TouchDeviceData {
QTouchDevice *qtTouchDevice = nullptr;