mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 11:36:33 +11:00
linux: Add missing Window2::id() impl
This commit is contained in:
parent
6bdc0fd824
commit
4e75c1e668
1 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue