Skip to content

Commit 9b49b5b

Browse files
committed
hopefully fixes CI
1 parent f39377d commit 9b49b5b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

winit-core/src/window.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ use crate::error::RequestError;
1515
use crate::icon::Icon;
1616
use crate::monitor::{Fullscreen, MonitorHandle};
1717

18-
/// Identifier of a window. Unique for each window.
18+
/// Identifier of a surface. Unique for each surface.
1919
///
20-
/// Can be obtained with [`window.id()`][`Window::id`].
20+
/// Can be obtained with [`surface.id()`][`Window::id`].
2121
///
22-
/// Whenever you receive an event specific to a window, this event contains a `WindowId` which you
22+
/// Whenever you receive an event specific to a surface, this event contains a `SurfaceId` which you
2323
/// can then compare to the ids of your windows.
2424
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
2525
pub struct SurfaceId(usize);
2626

27+
pub type WindowId = SurfaceId;
28+
2729
impl SurfaceId {
2830
/// Convert the `WindowId` into the underlying integer.
2931
///
@@ -2009,7 +2011,7 @@ impl SurfaceDowncastRef<'_> {
20092011
pub fn as_window(&self) -> Option<&'_ dyn Window> {
20102012
match self {
20112013
Self::Window(window) => Some(*window),
2012-
_ => None,
2014+
// _ => None,
20132015
}
20142016
}
20152017
}
@@ -2025,7 +2027,7 @@ impl SurfaceDowncastMut<'_> {
20252027
pub fn as_window(&mut self) -> Option<&'_ mut dyn Window> {
20262028
match self {
20272029
Self::Window(window) => Some(*window),
2028-
_ => None,
2030+
// _ => None,
20292031
}
20302032
}
20312033
}

0 commit comments

Comments
 (0)