File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ pub(crate) struct Window {
4343 native_handle : native:: NativeWindowImpl ,
4444 custom_cursors : HashMap < CustomCursorSource , CustomCursor > ,
4545 clipboard : Option < window_clipboard:: Clipboard > ,
46- was_maximized_before_fullscreen : bool ,
4746}
4847impl Drop for Window {
4948 fn drop ( & mut self ) {
@@ -76,7 +75,6 @@ impl Window {
7675 native_handle,
7776 custom_cursors : HashMap :: new ( ) ,
7877 clipboard,
79- was_maximized_before_fullscreen : false ,
8078 }
8179 }
8280
@@ -123,12 +121,9 @@ impl Window {
123121
124122 pub ( crate ) fn toggle_fullscreen ( & mut self ) {
125123 if self . is_fullscreen ( ) {
126- self . winit_window . set_maximized ( self . was_maximized_before_fullscreen ) ;
127124 self . winit_window . set_fullscreen ( None ) ;
128125 } else {
129- self . was_maximized_before_fullscreen = self . winit_window . is_maximized ( ) ;
130126 self . winit_window . set_fullscreen ( Some ( Fullscreen :: Borderless ( None ) ) ) ;
131- self . winit_window . set_maximized ( false ) ;
132127 }
133128 }
134129
You can’t perform that action at this time.
0 commit comments