Skip to content

Setting a transparent window to be resizable breaks transparency #48421

Closed

Description

@t57ser

Preflight Checklist

Electron Version

38.2.0

What operating system(s) are you using?

Windows

Operating System Version

Win10

What arch are you using?

x64

Last Known Working Electron version

37.2.5

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

Window should still be transparent

Actual Behavior

When setting a transparent window which is not resizable to be resizable again, the transparency breaks and a black area is shown

Testcase Gist URL

https://gist.github.com/t57ser/df9af8f7024137dfaf59de3e7b8909bc

Additional Information

After the window opens, just remove all content via the devtools (delete body) so that the entire window is transparent, after the timeout the area will be black

Activity

  1. added theissue type on Sep 30, 2025
  2. added
    has-repro-gist
    on Sep 30, 2025
  3. moved this to 👀 Unsorted Items in 38-x-yon Sep 30, 2025
  4. nikwen commented on Sep 30, 2025

    @nikwen
    Member

    Thanks for reporting and for the great repro!

    1. Would you be able to check which v38 alpha/beta/nightly version broke this? That always helps.
    2. Would you be able to share a screen recording of this?
    3. Does it happen on Mac or Linux, too?
  5. t57ser commented on Sep 30, 2025

    @t57ser
    ContributorAuthor

    @nikwen
    1 - Broken with v37.2.6 (https://github.com/electron/electron/releases/tag/v37.2.6) I assume whatever commit broke it, got ported into 38.

    2 - Image
    Maybe to note: I have set my theme to dark theme, so I assume that on light theme the background (which should be transparent) would be white instead.

    3 - Seems to only happen on windows

  6. t57ser commented on Sep 30, 2025

    @t57ser
    ContributorAuthor

    My best guess would be this: #47956
    I can see changes related to transparency, but I am not familiar enough with the code to clearly tell

  7. nikwen commented on Sep 30, 2025

    @nikwen
    Member

    Commit range: v37.2.5...v37.2.6

    I'm pretty sure it was caused by #47956 / #47386.

    CC @codebytere

  8. nikwen commented on Sep 30, 2025

    @nikwen
    Member

    Do you have a screen recording video, too, that shows how you repro it? You mentioned you had to do something in the devtools for it.

  9. zoy-l commented on Sep 30, 2025

    @zoy-l
    Contributor

    wait #48378

  10. t57ser commented on Sep 30, 2025

    @t57ser
    ContributorAuthor

    @nikwen

    I just delete the body so that a transparent area is shown

    Image

    Once you delete the body everything should be transparent and then after the timeout kicks in and resizable is set, it will no longer be transparent

  11. nikwen commented on Sep 30, 2025

    @nikwen
    Member

    wait #48378

    Thanks for working on it, @zoy-l! Does it fix this issue, too? If yes, can you add "fixes #48421" to the PR description? :)

  12. t57ser commented on Sep 30, 2025

    @t57ser
    ContributorAuthor

    wait #48378

    Thanks for working on it, @zoy-l! Does it fix this issue, too? If yes, can you add "fixes #48421" to the PR description? :)

    Not sure if that is the same issue, I was able to reproduce this in 37.2.5 while in 37.2.6 the entire window loses transparency.
    Might still be related though

  13. moved this from 👀 Unsorted Items to Follow Up Before Stable in 38-x-yon Oct 8, 2025
  14. t57ser commented on Oct 14, 2025

    @t57ser
    ContributorAuthor

    I tested this with v39.0.0-beta.3
    On win10 the window is no longer transparent but instead there is a white opaque background, on win11 it works
    but on both win11 and win10 resizing does no longer work if the window is transparent

    I created a new issue for this: #48554

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

    38-x-ybug 🪲component/BrowserWindowcomponent/transparenthas-repro-gistplatform/windows

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions