From 4e75c1e6688dcc307144f1163c55a1156638554a Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Sat, 4 Mar 2017 10:48:44 +0100 Subject: [PATCH] linux: Add missing Window2::id() impl --- src/platform/linux/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]