linux: Add missing Window2::id() impl

This commit is contained in:
Victor Berger 2017-03-04 10:48:44 +01:00
parent 6bdc0fd824
commit 4e75c1e668

View file

@ -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]