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

Dropping Window doesn't close it (X11) #805

Closed
gmorenz opened this issue Aug 17, 2016 · 1 comment
Closed

Dropping Window doesn't close it (X11) #805

gmorenz opened this issue Aug 17, 2016 · 1 comment

Comments

@gmorenz
Copy link

gmorenz commented Aug 17, 2016

For example, I would expect the following code to close the window immediately, instead of closing it when you kill the process

extern crate glutin;

fn main() {
    glutin::Window::new();
    loop {}
}

Adding (self.display.xlib.XSync)(self.display.display, 0); to the end of XWindow::drop fixes the issue, I'm not familiar enough with X to say if it's the right way to fix the issue.

@tomaka
Copy link
Contributor

tomaka commented Nov 3, 2016

Closing for rust-windowing/winit#79

@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