Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_cursor_position blocks infinitely on x11 #478

Closed
nicokoch opened this issue Jun 3, 2015 · 1 comment
Closed

set_cursor_position blocks infinitely on x11 #478

nicokoch opened this issue Jun 3, 2015 · 1 comment

Comments

@nicokoch
Copy link

nicokoch commented Jun 3, 2015

When using window.set_cursor_position on X11, the call will block infinitely, or until the window is unfocussed.

let (window_width, window_height) = window.get_inner_size().unwrap();
window.set_cursor_position((window_width/2) as i32, (window_height/2) as i32);
@tomaka
Copy link
Contributor

tomaka commented Nov 3, 2016

Closing for rust-windowing/winit#43

@tomaka tomaka closed this as completed Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants