From b9710f05a9d1e7fd10536b604074baf748fb5bd7 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 28 Dec 2014 15:08:41 +0100 Subject: Unify WindowBuilder and HeadlessRendererBuilder for easier implementations --- src/x11/window/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/x11/window') diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 0a8c3d5..fc622ea 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -1,4 +1,4 @@ -use {Event, WindowBuilder}; +use {Event, BuilderAttribs}; use CreationError; use CreationError::OsError; use libc; @@ -89,7 +89,7 @@ pub struct Window { } impl Window { - pub fn new(builder: WindowBuilder) -> Result { + pub fn new(builder: BuilderAttribs) -> Result { ensure_thread_init(); let dimensions = builder.dimensions.unwrap_or((800, 600)); @@ -308,7 +308,7 @@ impl Window { }); let share = if let Some(win) = builder.sharing { - win.window.x.context + win.x.context } else { ptr::null() }; -- cgit v1.2.3