10000 [Bug]: All electron application have frame thickness mismatch (small pixel borders around window title) under Linux with Wayland · Issue #42234 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: All electron application have frame thickness mismatch (small pixel borders around window title) under Linux with Wayland #42234
Open
@cedricroijakkers

Description

@cedricroijakkers

Preflight Checklist

Electron Version

30.0.6

What operating system are you using?

Other Linux

Operating System Version

Linux 48HVWD3 6.9.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 17 May 2024 16:56:38 +0000 x86_64 GNU/Linux

What arch are you using?

x64

Last Known Working Electron version

None, never seen this working under Wayland

Expected Behavior

When using any Electron app under Linux with Wayand and setting the window to full screen, the window title, just like the rest of the window, should fill the entire screen.

Actual Behavior

The window title is missing a few pixels on the left, top, and right border of the title only.

I can reproduce this issue under Linux with Wayland and GNOME 46, with 125% scaling on my screen.

To reproduce:

  • Open a terminal
  • Run electron30 with the Wayland flags: electron30 --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto
  • Maximize the electron window that appears

The terminal will show an error:

[179576:0521/164350.919483:ERROR:window_frame_provider_gtk.cc(407)] Frame thickness mismatch!  Old: [x:5,5 y:2,8], new: [x:5,5 y:3,8].  Current scale is 1.25.  Please report to crbug.com/1240905.

If you look closely at the title bar of the application, you will see the desktop background around the top, left, and right of the title bar only. The rest of the window is correctly maximized.

See screenshot:

image

Testcase Gist URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0