Skip to content

[Bug]: Window has borders while maximized in Wayland #33161

@alissonlauffer

Description

@alissonlauffer

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:

  • Use a Wayland environment.
  • Start the Electron demo app with the flags: --enable-features=WaylandWindowDecorations --ozone-platform=wayland.
  • Maximize the window.
  • See that the window isn't really maximized and there are still borders.

Some notes:

  • The issue is not reproducible in Chromium 99.0.4844.51 with the same start flags, so that's probably not a bug in the window manager.
  • When removing the WaylandWindowDecorations feature flag, window maximizes correctly under Wayland (though there are no window decorations, so I have to maximize window using keyboard).
  • Maybe CC fix: Add support for Wayland window decorations #29618 author?

Screenshot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions