From 79c2295775acd4843e520856faf9ca0f1b664f0c Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 5 Mar 2016 18:28:54 -0800 Subject: [PATCH] move isFullScreen check to ipc.js --- main/ipc.js | 2 +- renderer/index.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/main/ipc.js b/main/ipc.js index a61da263..7c03cad2 100644 --- a/main/ipc.js +++ b/main/ipc.js @@ -45,7 +45,7 @@ function addTorrentFromPaste () { function setBounds (bounds) { debug('setBounds %o', bounds) - if (windows.main) { + if (windows.main && !windows.main.isFullScreen()) { windows.main.setBounds(bounds, true) } } diff --git a/renderer/index.js b/renderer/index.js index 97f9ebe1..df897f4b 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -350,8 +350,6 @@ function openAirplay (torrent) { } function setDimensions (dimensions) { - if (state.isFullScreen) return - state.mainWindowBounds = electron.remote.getCurrentWindow().getBounds() // Limit window size to screen size