This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0605]: non-primitive cast: `std::iter::Map<std::boxed::Box<dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::x11::Config)>>, [closure@glutin/src/platform_impl/unix/unix.rs:59:48: 59:98]>` as `std::boxed::Box<dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::Config)>>` | |
--> glutin/src/platform_impl/unix/unix.rs:59:36 | |
| | |
59 | .map(|configs| configs.map(|(attribs, config)| (attribs, Config::X11(config))) as Box<_>), | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0308]: mismatched types | |
--> glutin/src/platform_impl/unix/wayland.rs:53:9 | |
| | |
52 | pub fn new(disp: &Display, cb: ConfigBuilder) -> Result<Box<dyn Iterator<Item = (ConfigAttribs, Config)>>, Error> { | |
| ---------------------------------------------------------------- expected `std::result::Result<std::boxed::Box<(dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::wayland::Config)> + 'static)>, winit_types::error::Error>` because of return type | |
53 | / egl::Config::new(&disp.0, cb, |confs| Ok(confs[0])) | |
54 | | .map(|configs| Box::new(configs.map(|(attribs, config)| (attribs, Config(config))))) | |
| |________________________________________________________________________________________________^ expected trait `std::iter::Iterator`, found struct `std::iter::Map` | |
| | |
= note: expected enum `std::result::Result<std::boxed::Box<(dyn std::iter::Iterator<Item = (config::ConfigAttribs, plat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
error[E0308]: mismatched types | |
--> glutin/src/platform_impl/unix/unix.rs:55:39 | |
| | |
53 | pub fn new(disp: &Display, cb: ConfigBuilder) -> Result<Box<dyn Iterator<Item = (ConfigAttribs, Config)>>, Error> { | |
| ---------------------------------------------------------------- expected `std::result::Result<std::boxed::Box<(dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::Config)> + 'static)>, winit_types::error::Error>` because of return type | |
54 | match disp { | |
55 | Display::Wayland(disp) => wayland::Config::new(disp, cb) | |
| _______________________________________^ | |
56 | | .map(|configs| configs.map(|(attribs, config)| (attribs, Config::Wayland(config)))), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Do…ts/node-spellchecker 0.00678s 62% | |
22:54 26.12.19 sudo pacman -S python python2 | |
[sudo] password for gentz: | |
resolving dependencies... | |
looking for conflicting packages... | |
:: python and python-gentz are in conflict (python3). Remove python-gentz? [y/N] y | |
:: python2 and python2-gentz are in conflict. Remove python2-gentz? [y/N] y | |
Packages (4) python-gentz-3.8.1-2 [removal] python2-gentz-2.7.17-40 [removal] python-3.8.1-1 python2-2.7.17-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export npm_config_target=$(tail /usr/lib/electron/version) | |
$ echo $npm_config_target | |
7.1.7 | |
$ export npm_config_arch=x64 | |
$ export npm_config_target_arch=x64 | |
$ export npm_config_disturl=https://atom.io/download/electron | |
$ export npm_config_runtime=electron | |
$ export npm_config_build_from_source=true | |
$ HOME="~/.electron-gyp" npm install | |
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install | |
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) | |
npm WARN deprecated coffee-script@1.8.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) | |
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
npm WARN deprecated minimatch@0.4.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
> ejs@2.7.4 postinstall /home/gentz/Documents/gfx/node-spellchecker/node_modules/ejs | |
> node ./postinstall.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DeviceEvent { device_id: DeviceId(X(DeviceId(10))), event: Key(KeyboardInput { scancode: 30, state: Pressed, virtual_keycode: Some(A), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } }) } | |
WindowEvent { window_id: WindowId(X(WindowId(46137345))), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 30, state: Pressed, virtual_keycode: Some(A), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } } } | |
aaaaaaaaaaaaaaaaaaaDeviceEvent { device_id: DeviceId(X(DeviceId(10))), event: Key(KeyboardInput { scancode: 30, state: Released, virtual_keycode: Some(A), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } }) } | |
DeviceEvent { device_id: DeviceId(X(DeviceId(10))), event: Key(KeyboardInput { scancode: 30, state: Pressed, virtual_keycode: Some(A), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } }) } | |
aDeviceEvent { device_id: DeviceId(X(DeviceId(10))), even |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DeviceEvent { device_id: DeviceId(X(DeviceId(10))), event: Key(KeyboardInput { scancode: 125, state: Pressed, virtual_keycode: None, modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: true } }) } | |
WindowEvent { window_id: WindowId(X(WindowId(46137345))), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: KeyboardInput { scancode: 125, state: Pressed, virtual_keycode: None, modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } } } | |
WindowEvent { window_id: WindowId(X(WindowId(46137345))), event: ModifiersChanged { modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: true } } } | |
DeviceEvent { device_id: DeviceId(X(DeviceId(10))), event: Key(KeyboardInput { scancode: 42, state: Pressed, virtual_keycode: Some(LShift), modifiers: ModifiersState { shift: true, ctrl: false, alt: false, logo: true } }) } | |
WindowEvent { window_id: WindowId(X(WindowId(46137345))), event: KeyboardInput { device_id: DeviceId(X(DeviceId(3))), input: Keyboar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/platform_impl/linux/x11/event_processor.rs b/src/platform_impl/linux/x11/event_processor.rs | |
index d65a0133..7082331b 100644 | |
--- a/src/platform_impl/linux/x11/event_processor.rs | |
+++ b/src/platform_impl/linux/x11/event_processor.rs | |
@@ -545,6 +545,7 @@ impl<T: 'static> EventProcessor<T> { | |
let modifiers = self.window_mod_state.modifiers(); | |
+ eprintln!("[gentz] Key 1"); | |
callback(Event::WindowEvent { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gentz] x11 drain | |
[gentz] Key 2 | |
[gentz] Got event | |
[gentz] Key 1 | |
[gentz] Got event | |
[gentz] ev wait 2 | |
[gentz] ev wait 3 | |
[gentz] xserver drain | |
[gentz] to drain | |
[gentz] done drain |
NewerOlder