Skip to content

Prepared winit for glutin porting - #23

Merged
tomaka merged 1 commit into
rust-windowing:masterfrom
ozkriff:port_glutin_to_winit
Oct 20, 2016
Merged

tomaka merged 1 commit into
rust-windowing:masterfrom
ozkriff:port_glutin_to_winit

Conversation

@ozkriff

@ozkriff ozkriff commented Oct 20, 2016

Copy link
Copy Markdown
Contributor

Comment thread src/api/x11/window.rs
self.x.display.display as *mut libc::c_void
}

#[inline]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this should be std::os::raw::c_void and not libc::c_void, but since an existing method also uses libc I'm ok with it.

Comment thread src/os/unix.rs
/// The pointer will become invalid when the glutin `Window` is destroyed.
fn get_xlib_display(&self) -> Option<*mut libc::c_void>;

fn get_xlib_screen_id(&self) -> Option<*mut libc::c_void>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, my previous comments applies to this one in fact.

@tomaka

tomaka commented Oct 20, 2016

Copy link
Copy Markdown
Contributor

Looks good.

@tomaka
tomaka merged commit 81e2037 into rust-windowing:master Oct 20, 2016
@ozkriff

ozkriff commented Oct 20, 2016

Copy link
Copy Markdown
Contributor Author

Yay! Can you update crates.io version? I will fix Cargo.toml in rust-windowing/glutin#819 then.

tmfink pushed a commit to tmfink/winit that referenced this pull request Jan 5, 2022
madsmtm pushed a commit to madsmtm/winit that referenced this pull request Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants