Skip to content

Wayland: some frame configurations still have incorrect bounds #49902

Closed

Description

@mitchchn

Preflight Checklist

Electron Version

41.0.0-beta.4

What operating system(s) are you using?

Ubuntu

Operating System Version

Ubuntu 25.10

What arch are you using?

x64

Last Known Working Electron version

No response

Does the issue also appear in Chromium / Google Chrome?

No, but it's caused by Chromium ;)

Expected Behavior

This configuration would produce an 800x600 window:

const WIDTH = 800;
const HEIGHT = 600;
  const mainWindow = new BrowserWindow({
	width: WIDTH,
	height: HEIGHT,
	minHeight: HEIGHT,
	minWidth: WIDTH,
	maxWidth: WIDTH,
	maxHeight: HEIGHT,
	resizable: false,
	maximizable: false,
	minimizable: false,
	frame: true // true on gnome in 41 beta, true or false on all Wayland configs in electron 42 nightly
  })

Actual Behavior

The window is smaller, roughly by the size of its shadows.

Testcase Gist URL

https://gist.github.com/5f58f8432044e740ce73f60d5dc35ea7

Additional Information

The changes in #49835 need to account for size constraints, especially when combined.

Activity

  1. added theissue type on Feb 21, 2026
  2. added
    has-repro-gist
    on Feb 21, 2026
  3. moved this to 👀 Unsorted Items in 41-x-yon Feb 21, 2026
  4. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 41-x-yon Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    41-x-ybug 🪲has-repro-gistplatform/linuxwayland

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions