Skip to content

WCO Maximise/Restore button issues when backgroundMaterial used #47366

@hopejr

Description

@hopejr

Preflight Checklist

Electron Version

36.4.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 24H2

What arch are you using?

x64

Last Known Working Electron version

Unknown

Expected Behavior

Restore button should replace maximise button after clicking on latter button. And clicking the restore button in maximised mode should restore the window.

Actual Behavior

The maximise button doesn't change to restore button when clicked and the window maximises. Clicking the stuck maximise button (or restore button when maximised using other methods) doesn't restore the window. Dragging the title bar to restore the window just keeps it the same side (with the issue of rounded corners as per #46753.

Testcase Gist URL

https://gist.github.com/aefdd05711802dddfc4d79d7729dbc33

Additional Information

Removing backgroundMaterial from the options results in the button working correctly, but that then removes the backgroundMaterial.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions