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]: Electron window resizes when displat scaling is less than 100% on wayland #42200

Open
3 tasks done
jeisom opened this issue May 15, 2024 · 1 comment
Open
3 tasks done
Labels
bug 🪲 platform/linux status/reviewed A maintainer made an initial review but not reproduced the issue wayland

Comments

@jeisom
Copy link

jeisom commented May 15, 2024

Preflight Checklist

Electron Version

30.0..1

What operating system are you using?

Other Linux

Operating System Version

Arch Linux Plasma 6 Wayland

What arch are you using?

x64

Last Known Working Electron version

22.3.27

Expected Behavior

For the window to not resize when focus is changed and to fill screen properly when maximized.

Actual Behavior

I have a 2 screen setup where the secondary screen to 90% to better align with the size of the primary screen(125%). On the 90% screen when Electron is on it will not properly scale to fill the screen and when I click on another window the electron window shrinks. Alternating between the 2 windows will continue to resize it smaller and smaller. The window also does not maximized properly. This behavior does not occur when fractional scaling to at 100% or 125%.

Tested :
Working correctly
22 22.3.27-6

Broken:
l25 25.9.8-5
28 28.3.1-2
29 29.3.1-2
30.0.1-2

Testcase Gist URL

No response

Additional Information

Tested on Plasma 6.0.4 wayland.

AMD 5900x
Nvidia 4080 (driver 550.78)
6.8.9-273-tkg-linux-tkg

@rgambord
Copy link

Experiencing same issue with the BitWarden desktop client with wayland scaling <100%.

GUI elements are also not scaling properly--they scale visually, but positioning and mouse events seem to be based on unscaled sizes. It is unclear whether that is a bitwarden or electron issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 platform/linux status/reviewed A maintainer made an initial review but not reproduced the issue wayland
Projects
None yet
Development

No branches or pull requests

3 participants