aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/headless.rs3
-rw-r--r--src/x11/window/mod.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs
index 95f5233..d6f1023 100644
--- a/src/x11/headless.rs
+++ b/src/x11/headless.rs
@@ -62,3 +62,6 @@ impl Drop for HeadlessContext {
unsafe { ffi::OSMesaDestroyContext(self.context) }
}
}
+
+unsafe impl Send for HeadlessContext {}
+unsafe impl Sync for HeadlessContext {}
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs
index 422b5b6..0a8c3d5 100644
--- a/src/x11/window/mod.rs
+++ b/src/x11/window/mod.rs
@@ -34,6 +34,9 @@ struct XWindow {
im: ffi::XIM,
}
+unsafe impl Send for Window {}
+unsafe impl Sync for Window {}
+
impl Drop for XWindow {
fn drop(&mut self) {
unsafe {