Skip to content
Permalink
Browse files

Go back to original window size after exiting fullscreen

  • Loading branch information...
ferjm committed Sep 20, 2019
1 parent 748fa72 commit 1651b419353058e71b91eec03e447a7acc20e7f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 ports/glutin/headed_window.rs
@@ -325,7 +325,7 @@ impl WindowPortsMethods for Window {
fn set_fullscreen(&self, state: bool) {
if self.fullscreen.get() != state {
self.gl_context.borrow_mut().window()
.set_fullscreen(Some(self.primary_monitor.clone()));
.set_fullscreen(if state { Some(self.primary_monitor.clone()) } else { None });
}
self.fullscreen.set(state);
}

0 comments on commit 1651b41

Please sign in to comment.
You can’t perform that action at this time.