#45916·electron

Frameless windows causes rightmost pixels to resize window

Author: bpaseroCreated Mar 7, 2025Updated Sep 17, 2026
Labelsplatform/windowsplatform/linuxbug :beetle:component/BrowserWindowhas-repro-commentstale36-x-y

Preflight Checklist

Electron Version

36

What operating system(s) are you using?

Ubuntu

Operating System Version

24.04

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

No response

Expected Behavior

When you tile a frameless window to the right of the display, clicking all the way to the right triggers the window resize handler and does not click into the window. This does not happen with native apps that are not frameless.

Actual Behavior

You click on the far right and it triggers the window resize handler:

Testcase Gist URL

No response

Additional Information

Create a BrowserWindow like this:

const mainWindow = new BrowserWindow({
    width: 800,
    height: 600,
    titleBarStyle: "hidden",
    titleBarOverlay: {
      height: 24
    },
    webPreferences: {
      preload: path.join(__dirname, 'preload.js')
    }
  })