aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/wayland')
-rw-r--r--src/api/wayland/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs
index 0af5496..826826e 100644
--- a/src/api/wayland/mod.rs
+++ b/src/api/wayland/mod.rs
@@ -169,9 +169,9 @@ impl Window {
try!(EglContext::new(
egl,
&builder,
- Some(wayland_context.display.ptr() as *const _),
- (*shell_surface).ptr() as *const _
- ))
+ Some(wayland_context.display.ptr() as *const _))
+ .and_then(|p| p.finish((*shell_surface).ptr() as *const _))
+ )
};
let events = Arc::new(Mutex::new(VecDeque::new()));