X11: Report CursorMoved when touch event occurs (#1297)

* X11: Report `CursorMoved` when touch event occurs

* Only trigger CursorMoved events for the first touch ID

* Fix testing for current touch events

* Fix first touch logic
This commit is contained in:
Murarth 2019-12-11 17:23:55 -07:00 committed by GitHub
parent e5291c9e28
commit 1f81e5c872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 3 deletions

View file

@ -199,6 +199,8 @@ impl<T: 'static> EventLoop<T> {
xi2ext,
mod_keymap,
device_mod_state: Default::default(),
num_touch: 0,
first_touch: None,
};
// Register for device hotplug events