#51957·electron

BrowserWindow does not open as fullscreen when resizable and frame are false.

Author: Justin-NietzelCreated Jun 10, 2026Updated Sep 28, 2026
Labelsplatform/windowsbug :beetle:status/confirmedcomponent/BrowserWindowhas-repro-gist42-x-y

Preflight Checklist

Electron Version

42.3.3 - Workaround available 42.5.0 - No work around available

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 25H2

What arch are you using?

x64

Last Known Working Electron version

40.10.3

Does the issue also appear in Chromium / Google Chrome?

I don't know how to test

Expected Behavior

Creating a BrowserWindow with these settings should create a fullscreen window.

new BrowserWindow({
  resizable: false,
  frame: false,
  fullscreen: true,
});

Actual Behavior

Window is created as a non-fullscreen window with a width and height of 800x600 with the origin at the top left of the screen.

Testcase Gist URL

https://gist.github.com/KyranTanDev/580a05bd4605c2de0ab50cc8e908951a

Additional Information

This section does not apply electron 42.5.0+.

Setting width to a number between -(2**31) and 16 will cause the window to open as fullscreen. Setting height to a number between -(2**31) and 8 will cause the window to open as fullscreen. Using a value that is less than or equal to -(2**31 + 1) will not work.

Example of widths and heights that should cause the screen to open as fullscreen.

new BrowserWindow({
  resizable: false,
  frame: false,
  fullscreen: true,
  width: 0,
});

new BrowserWindow({
  resizable: false,
  frame: false,
  fullscreen: true,
  height: -(2**31),
});

new BrowserWindow({
  resizable: false,
  frame: false,
  fullscreen: true,
  width: 0,
  height: -(2**31),
});