Skip to content

Commit

Permalink
Go back to original window size after exiting fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Sep 20, 2019
1 parent 748fa72 commit 1651b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/glutin/headed_window.rs
Expand Up @@ -325,7 +325,7 @@ impl WindowPortsMethods for Window {
fn set_fullscreen(&self, state: bool) { fn set_fullscreen(&self, state: bool) {
if self.fullscreen.get() != state { if self.fullscreen.get() != state {
self.gl_context.borrow_mut().window() 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); self.fullscreen.set(state);
} }
Expand Down

0 comments on commit 1651b41

Please sign in to comment.