@@ -118,15 +118,15 @@ impl Context {
118
118
}
119
119
120
120
#[ inline]
121
- pub unsafe fn make_current_window (
121
+ pub unsafe fn make_current_surface (
122
122
& self ,
123
123
surface : & WindowSurface ,
124
124
) -> Result < ( ) , ContextError > {
125
125
match ( self , surface) {
126
126
(
127
127
Context :: Wayland ( ref ctx) ,
128
128
WindowSurface :: Wayland ( ref surface) ,
129
- ) => ctx. make_current_window ( surface) ,
129
+ ) => ctx. make_current_surface ( surface) ,
130
130
}
131
131
}
132
132
@@ -242,14 +242,14 @@ impl WindowSurface {
242
242
el : & EventLoopWindowTarget < T > ,
243
243
ctx : & Context ,
244
244
wb : WindowBuilder ,
245
- ) -> Result < ( Self , Window ) , CreationError > {
245
+ ) -> Result < ( Window , Self ) , CreationError > {
246
246
match ctx {
247
247
// Context::X11(ref ctx) => x11::WindowSurface::new(el, ctx, wb)
248
248
// .map(|(surface, win)| (WindowSurface::X11(surface), win)),
249
249
Context :: Wayland ( ref ctx) => wayland:: WindowSurface :: new (
250
250
el, ctx, wb,
251
251
)
252
- . map ( |( surface , win ) | ( WindowSurface :: Wayland ( surface) , win ) ) ,
252
+ . map ( |( win , surface ) | ( win , WindowSurface :: Wayland ( surface) ) ) ,
253
253
}
254
254
}
255
255
0 commit comments