Skip to content

Commit 9d5f4ff

Browse files
committed
hopefully fixes CI
1 parent 354fb5b commit 9d5f4ff

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
@@ -12,15 +12,17 @@ use crate::error::RequestError;
1212
use crate::icon::Icon;
1313
use crate::monitor::{Fullscreen, MonitorHandle};
1414

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

24+
pub type WindowId = SurfaceId;
25+
2426
impl SurfaceId {
2527
/// Convert the `WindowId` into the underlying integer.
2628
///
@@ -1639,7 +1641,7 @@ impl SurfaceDowncastRef<'_> {
16391641
pub fn as_window(&self) -> Option<&'_ dyn Window> {
16401642
match self {
16411643
Self::Window(window) => Some(*window),
1642-
_ => None,
1644+
// _ => None,
16431645
}
16441646
}
16451647
}
@@ -1655,7 +1657,7 @@ impl SurfaceDowncastMut<'_> {
16551657
pub fn as_window(&mut self) -> Option<&'_ mut dyn Window> {
16561658
match self {
16571659
Self::Window(window) => Some(*window),
1658-
_ => None,
1660+
// _ => None,
16591661
}
16601662
}
16611663
}

0 commit comments

Comments
 (0)