Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: All electron application have frame thickness mismatch (small pixel borders around window title) under Linux with Wayland #42234

Open
3 tasks done
cedricroijakkers opened this issue May 21, 2024 · 5 comments

Comments

@cedricroijakkers
Copy link

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

@ZtereoHYPE
Copy link

ZtereoHYPE commented Jun 5, 2024

Noticed the same issue, even when not in full-screen. Here are some attachments, both with and without fractional scaling:
image
image

@cedricroijakkers
Copy link
Author

Still can reproduce this in 30.0.9

@cedricroijakkers
Copy link
Author

Still can reproduce this in 30.1.0

@selfisekai
Copy link
Contributor

can reproduce, seems specific to GNOME? can't reproduce on KDE

@ZtereoHYPE
Copy link

ZtereoHYPE commented Jun 8, 2024

To add some information that might be helpful, it seems like some surfaces are being rendered with an offset of one pixel in both axis, which is visible by zooming into the screenshots above.

Screenshot_20240609-012312

Could this be a rounding or starting from 1 rather than 0 type of bug, maybe related to the GTK theme, considering it seems to only happen in GNOME?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: 👍 Does Not Block Stable
Development

No branches or pull requests

4 participants