@@ -41,7 +41,7 @@ use winit::platform::web::{ActiveEventLoopExtWeb, WindowAttributesWeb};
4141use winit:: platform:: x11:: { ActiveEventLoopExtX11 , WindowAttributesX11 } ;
4242use winit:: window:: {
4343 CursorGrabMode , ImeCapabilities , ImeEnableRequest , ImePurpose , ImeRequestData , ResizeDirection ,
44- SurfaceId , Theme , Window , WindowAttributes ,
44+ WindowId , Theme , Window , WindowAttributes ,
4545} ;
4646use winit_core:: application:: macos:: ApplicationHandlerExtMacOS ;
4747use winit_core:: window:: ImeRequest ;
@@ -95,7 +95,7 @@ struct Application {
9595 custom_cursors : Result < Vec < CustomCursor > , RequestError > ,
9696 /// Application icon.
9797 icon : Icon ,
98- windows : HashMap < SurfaceId , WindowState > ,
98+ windows : HashMap < WindowId , WindowState > ,
9999 /// Drawing context.
100100 ///
101101 /// With OpenGL it could be EGLDisplay.
@@ -147,7 +147,7 @@ impl Application {
147147 & mut self ,
148148 event_loop : & dyn ActiveEventLoop ,
149149 _tab_id : Option < String > ,
150- ) -> Result < SurfaceId , Box < dyn Error > > {
150+ ) -> Result < WindowId , Box < dyn Error > > {
151151 // TODO read-out activation token.
152152
153153 #[ allow( unused_mut) ]
@@ -213,7 +213,7 @@ impl Application {
213213 fn handle_action_with_window (
214214 & mut self ,
215215 event_loop : & dyn ActiveEventLoop ,
216- window_id : SurfaceId ,
216+ window_id : WindowId ,
217217 action : Action ,
218218 ) {
219219 // let cursor_position = self.cursor_position;
@@ -415,7 +415,7 @@ impl ApplicationHandler for Application {
415415 fn window_event (
416416 & mut self ,
417417 event_loop : & dyn ActiveEventLoop ,
418- window_id : SurfaceId ,
418+ window_id : WindowId ,
419419 event : WindowEvent ,
420420 ) {
421421 let window = match self . windows . get_mut ( & window_id) {
@@ -601,7 +601,7 @@ impl ApplicationHandlerExtMacOS for Application {
601601 fn standard_key_binding (
602602 & mut self ,
603603 _event_loop : & dyn ActiveEventLoop ,
604- window_id : SurfaceId ,
604+ window_id : WindowId ,
605605 action : & str ,
606606 ) {
607607 info ! ( ?window_id, ?action, "macOS standard key binding" ) ;
0 commit comments