Skip to content

Commit

Permalink
Unix fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Jan 28, 2017
1 parent 148f507 commit 7d15ddf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/api_transition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ macro_rules! gen_api_transition {
}

pub struct Window2 {
window: ::std::sync::Arc<Window>,
pub window: ::std::sync::Arc<Window>,
events_loop: ::std::sync::Weak<EventsLoop>,
}

Expand Down
14 changes: 7 additions & 7 deletions src/os/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,36 +86,36 @@ pub trait WindowExt {
impl WindowExt for Window {
#[inline]
fn get_xlib_window(&self) -> Option<*mut libc::c_void> {
match self.window {
match self.window.window {
LinuxWindow::X(ref w) => Some(w.get_xlib_window()),
_ => None
}
}

#[inline]
fn get_xlib_display(&self) -> Option<*mut libc::c_void> {
match self.window {
match self.window.window {
LinuxWindow::X(ref w) => Some(w.get_xlib_display()),
_ => None
}
}

fn get_xlib_screen_id(&self) -> Option<*mut libc::c_void> {
match self.window {
match self.window.window {
LinuxWindow::X(ref w) => Some(w.get_xlib_screen_id()),
_ => None
}
}

fn get_xlib_xconnection(&self) -> Option<Arc<XConnection>> {
match self.window {
match self.window.window {
LinuxWindow::X(ref w) => Some(w.get_xlib_xconnection()),
_ => None
}
}

fn get_xcb_connection(&self) -> Option<*mut libc::c_void> {
match self.window {
match self.window.window {
LinuxWindow::X(ref w) => Some(w.get_xcb_connection()),
_ => None
}
Expand All @@ -136,15 +136,15 @@ impl WindowExt for Window {

#[inline]
fn get_wayland_client_surface(&self) -> Option<&WlSurface> {
match self.window {
match self.window.window {
LinuxWindow::Wayland(ref w) => Some(w.get_surface()),
_ => None
}
}

#[inline]
fn get_wayland_client_display(&self) -> Option<&WlDisplay> {
match self.window {
match self.window.window {
LinuxWindow::Wayland(ref w) => Some(w.get_display()),
_ => None
}
Expand Down

0 comments on commit 7d15ddf

Please sign in to comment.