aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/window
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-10-24 10:19:35 +0200
committertomaka <pierre.krieger1708@gmail.com>2014-10-24 10:19:35 +0200
commitfe8646c55681d6ecbd290010ab702f8f0feecc00 (patch)
tree9133f1513e7da85e951e08f3a0c9fb3ac93f00ac /src/x11/window
parent59ff347eed8fda8a298330fcc5ab3ad89686da32 (diff)
parent21e3ff99fa5628011fe226dd13a87e09f0f33330 (diff)
downloadglutin-fe8646c55681d6ecbd290010ab702f8f0feecc00.tar.gz
glutin-fe8646c55681d6ecbd290010ab702f8f0feecc00.zip
Merge pull request #66 from glennw/platform_data
Add accessor for underlying display handle on Linux.
Diffstat (limited to 'src/x11/window')
-rw-r--r--src/x11/window/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs
index cb73958..3d69a3e 100644
--- a/src/x11/window/mod.rs
+++ b/src/x11/window/mod.rs
@@ -469,6 +469,10 @@ impl Window {
pub fn swap_buffers(&self) {
unsafe { ffi::glx::SwapBuffers(self.display, self.window) }
}
+
+ pub fn platform_display(&self) -> *mut libc::c_void {
+ self.display as *mut libc::c_void
+ }
}
impl Drop for Window {