diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2015-10-22 16:29:48 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-10-23 08:01:03 -0700 |
commit | 8c0dfe19c29f079c06d556fbf645db8eafb713da (patch) | |
tree | 18f09ed58dbfd81a8ab5613754a4425f2d067fb0 /src/api/x11/window.rs | |
parent | 6cefaa12be09c76bd0320a22a513e9bc99ea6337 (diff) | |
download | glutin-8c0dfe19c29f079c06d556fbf645db8eafb713da.tar.gz glutin-8c0dfe19c29f079c06d556fbf645db8eafb713da.zip |
Change X11 events based on `multitouch` option
* If `multitouch` is enabled, touch input generates touch events.
* If `multitouch` is disabled, touch input generates emulated mouse events.
Diffstat (limited to 'src/api/x11/window.rs')
-rw-r--r-- | src/api/x11/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index cf7854e..0196f67 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -562,7 +562,7 @@ impl Window { current_size: Cell::new((0, 0)), pending_events: Mutex::new(VecDeque::new()), cursor_state: Mutex::new(CursorState::Normal), - input_handler: Mutex::new(XInputEventHandler::new(display, window, ic)) + input_handler: Mutex::new(XInputEventHandler::new(display, window, ic, window_attrs)) }; // returning |