!bvgfLhTTPgeiMfVbkO:matrix.org

Glutin and Winit

93 Members
Welcome to #glutin, the official Matrix/IRC channel for Glutin and Winit! - Github: https://github.com/rust-windowing/glutin, https://github.com/rust-windowing/winit - Crates.io: https://crates.io/crates/glutin, https://crates.io/crates/winit - Docs: https://docs.rs/glutin/0.21.0/glutin, https://docs.rs/winit/0.20.0/winit/17 Servers

Load older messages


Timestamp Message
22 Jan 2020
07:56:00@sebk:matrix.orgsebk rustykirei (Gitter): I can only tell you what works for me on x11
07:58:21@sebk:matrix.orgsebkhttps://github.com/grafeia/grafeia/blob/master/gui/src/view.rs#L166
10:53:15@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org joined the room.
10:53:23@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org left the room.
10:53:40@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org joined the room.
11:08:15@freenode_est31:matrix.org@freenode_est31:matrix.org left the room.
12:19:12@freenode_jmi2k:matrix.orgjmi2k joined the room.
12:24:00@freenode_jmi2k:matrix.orgjmi2k Hi, I'm starting to learn a bit of graphics programming and I'm using Winit + Vulkano. I'm having problems grabbing the mouse (as if it was a FPS game). Right now I'm using set_cursor_grab(true).unwrap(); set_cursor_visible(true), but it panics with thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os(OsError { line: 1246, file:
12:24:02@freenode_jmi2k:matrix.orgjmi2k "/home/jmi2k/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/platform_impl/linux/x11/window.rs", error: XMisc("Cursor could not be grabbed: grab location not viewable") })', src/libcore/result.rs:999:5. How should I do it? I cannot find any documentation
14:02:02@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org left the room.
14:15:46@sebk:matrix.orgsebk
Either if grab_window or confine_to window is not viewable or if the confine_to window lies completely outside the boundaries of the root window, XGrabPointer() fails and returns GrabNotViewable.
14:15:51@sebk:matrix.orgsebk jmi2k: ^
14:16:11@sebk:matrix.orgsebkso you can only grab it while it is in your window
14:16:34@sebk:matrix.orgsebkhttps://tronche.com/gui/x/xlib/input/XGrabPointer.html
19:29:40@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org joined the room.
20:26:49@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org left the room.
23 Jan 2020
08:27:19@appservice-irc:matrix.org@appservice-irc:matrix.orgchanged room power levels.
11:40:51@appservice-irc:matrix.org@appservice-irc:matrix.orgchanged room power levels.
16:16:12@freenode_cole-h:matrix.org@freenode_cole-h:matrix.org joined the room.
24 Jan 2020
06:29:41@freenode_cole-h:matrix.org@freenode_cole-h:matrix.org left the room.
09:23:30@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org joined the room.
10:36:29@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org left the room.
11:35:28@freenode_Guapo_r64d25:matrix.org@freenode_Guapo_r64d25:matrix.org joined the room.
11:36:23@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org joined the room.
11:43:52@freenode_Guapo_r64d25:matrix.org@freenode_Guapo_r64d25:matrix.org left the room.
17:34:07@freenode_cole-h:matrix.org@freenode_cole-h:matrix.org joined the room.
18:05:03@freenode_jenny-m:matrix.org@freenode_jenny-m:matrix.org left the room.
25 Jan 2020
06:32:30@freenode_murarth:matrix.orgmurarth left the room.
06:34:49@freenode_murarth:matrix.orgmurarth joined the room.
07:53:36@freenode_cole-h:matrix.org@freenode_cole-h:matrix.org left the room.

There are no newer messages yet.


Back to Room List