fix fullscreen on Windows

The win.isFullScreen() state takes a second to update so we should just
pass the state manually into onToggleFullScreen().
This commit is contained in:
Feross Aboukhadijeh
2016-03-07 21:46:17 -08:00
parent 7c68be4fd4
commit 0cca67a436
4 changed files with 25 additions and 19 deletions

View File

@@ -193,7 +193,7 @@ function dispatch (action, ...args) {
update()
}
if (action === 'toggleFullScreen') {
ipcRenderer.send('toggleFullScreen')
ipcRenderer.send('toggleFullScreen', args[0])
update()
}
if (action === 'videoMouseMoved') {
@@ -448,7 +448,7 @@ function closePlayer () {
update()
if (state.isFullScreen) {
ipcRenderer.send('toggleFullScreen')
dispatch('toggleFullScreen', false)
}
restoreBounds()
stopServer()