diff --git a/src/platform/linux/mod.rs b/src/platform/linux/mod.rs index 3ec96681..0712469f 100644 --- a/src/platform/linux/mod.rs +++ b/src/platform/linux/mod.rs @@ -147,7 +147,10 @@ impl Window2 { #[inline] pub fn id(&self) -> WindowId { - unimplemented!() + match self { + &Window2::X(ref w) => WindowId::X(w.id()), + &Window2::Wayland(ref w) => WindowId::Wayland(w.id()) + } } #[inline]