mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Merge pull request #151 from vberger/wayland_new_api
linux: Add missing Window2::id() impl
This commit is contained in:
@@ -147,7 +147,10 @@ impl Window2 {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn id(&self) -> WindowId {
|
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]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user