Skip to content

hasShadow/setHasShadow does not work on Windows #52583

Open

Description

@mitchchn

Preflight Checklist

Electron Version

43.2.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 25H2

What arch are you using?

x64

Last Known Working Electron version

No response

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

Creating a frameless window with hasShadow: false or calling setHasShadow(false) should remove the drop shadow.

Actual Behavior

Windows (with thickframe: true) always have shadows. The only way to remove the shadow is to remove the thick frame.

Testcase Gist URL

https://gist.github.com/42441a104d0cb271990e0e74fc405497

Additional Information

It might be possible to toggle shadows using DWM, but the result may end up being the same as toggling thickFrame.

Activity

  1. added theissue type on Aug 1, 2026
  2. moved this to 👀 Unsorted Items in 43-x-yon Aug 1, 2026
  3. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 43-x-yon Aug 5, 2026
  4. added
    has-repro-gist
    on Aug 17, 2026
  5. electron-issue-triage commented on Nov 16, 2026

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    43-x-ybug 🪲has-repro-gistplatform/windowsstale

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions