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]: Window has borders while maximized in Wayland #33161
Comments
The same problem also appears in weston, the wayland compositor reference implementation (because it also doesn't support server-side decorations). However, electron works correctly in compositors with server-side decorations (e.g., KDE, sway), because the client-side decorations (that fail to detect maximized state) are disabled there as per #29618 (comment) |
Hi all, Thanks for your work, |
I have this issue too on GNOME 42, is there any fix in progress? |
I have recently begun writing my own Wayland compositor for fun and, having now become significantly more familiar with the way the system works, I can say pretty confidently that this is a bug on Electron's part. The compositor can tell a client that it's now maximized, and it's the client's responsibility to update its decorations to match that state. Electron is not doing that, resulting in it simply being resized into a 'maximized' area by the compositor without removing the shadow, which is technically part of the decorations. |
Wayland support is blocked by electron/electron#33161
Preflight Checklist
Electron Version
17.1.0 and 18.0.0-alpha.5
What operating system are you using?
Other Linux
Operating System Version
Arch Linux
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
The window should have no borders when maximized.
Actual Behavior
Window has borders when maximized (at least in GNOME, I have not tested in other interfaces/window managers).
Testcase Gist URL
No response
Additional Information
To reproduce:
--enable-features=WaylandWindowDecorations --ozone-platform=wayland
.Some notes:
WaylandWindowDecorations
feature flag, window maximizes correctly under Wayland (though there are no window decorations, so I have to maximize window using keyboard).The text was updated successfully, but these errors were encountered: