nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

win.isFullScreen is always giving false

Open Quartzbell opened this issue 5 years ago • 2 comments

NWJS Version : 0.52.2 Operating System : Win 10 64bit Tested on both single and dual monitor. Tested on both frameless and framed app.

Expected behavior

Based on the specs : https://docs.nwjs.io/en/latest/References/Window/#window

win.isFullscreen will be true if the screen is on full screen (maximized)

Actual behavior

win.isFullscreen is always false whether the app is on full screen or not.

How to reproduce

var thisWin = nw.Window.get()
thisWin.maximize();
thisWin.isFullscreen;
console.log("Are we in full screen?", thisWin.isFullscreen);

With the deprecation of chrome.app.window.current().isMaximized() Now, there is virtually no way to tell whether the current app is in full screen or not when application is starting.

Quartzbell avatar Apr 17 '21 05:04 Quartzbell

Have the same

t-mish avatar Apr 19 '21 08:04 t-mish

are maximized and fullscreen not 2 different states though (no taskbar etc)? Maybe we should rather ask for a new isMaximized property (replacing the previous API with same behavior).

bschmitlin avatar May 14 '21 09:05 bschmitlin