Skip to content

Frameless windows show titlebar on blur in Electron 36 #46882

Closed

Description

@bukharin

Preflight Checklist

Electron Version

36.0.1

What operating system(s) are you using?

Windows

Operating System Version

11

What arch are you using?

x64

Last Known Working Electron version

36.0.0-beta.9

Expected Behavior

Frameless windows should not show own titlebar

Actual Behavior

Frameless windows show own titlebar on blur window event

Image

Testcase Gist URL

https://gist.github.com/bukharin/4e5fa26e3ab87c7ca03d002ba9b5ca60

Additional Information

I guess this is a regress after #46657

Activity

  1. added theissue type on May 1, 2025
  2. added
    has-repro-gist
    on May 1, 2025
  3. moved this to 👀 Unsorted Items in 36-x-yon May 1, 2025
  4. MohabASHRAF-byte commented on May 1, 2025

    @MohabASHRAF-byte

    Hello, can I work on this?

  5. nikwen commented on May 1, 2025

    @nikwen
    Member

    Thanks for the great repro and narrowing it down to the beta where it broke!

    @MohabASHRAF-byte Anyone is free to work on any issue. Just open a PR. (The Electron team does not assign issues to non-maintainers. As mentioned before, being assigned is not needed though.)

  6. moved this from 👀 Unsorted Items to 🛑 Blocks Stable in 36-x-yon May 7, 2025
  7. moved this from 🛑 Blocks Stable to 👍 Does Not Block Stable in 36-x-yon May 7, 2025
  8. moved this from 👍 Does Not Block Stable to 🛠️ Fixed for Next Release in 36-x-yon May 7, 2025
  9. 10 remaining items

  10. nikwen commented on Jun 14, 2025

    @nikwen
    Member

    @Galkon Please don't bump issues unless prompted by the bot. It sends a bunch of notifications, annoys maintainers and doesn't lead to quicker fixes. (Posting this because it's not the only issue I got a bump notification for.)

  11. okanzi commented on Jun 18, 2025

    @okanzi

    Downgrade to 35.2.1 to avoid this issue.

  12. royalsrivastavagithub commented on Jun 19, 2025

    @royalsrivastavagithub

    is it still being fixed ?

  13. royalsrivastavagithub commented on Jun 19, 2025

    @royalsrivastavagithub

    Any update on when a fix will be available? I am still stuck with electron 35 due to this issue.

    same here

  14. devPablo commented on Jun 23, 2025

    @devPablo

    Experiencing this same issue on Electron > v36.0.0, but can't downgrade to Electron <= v35.x.x because I need "setContentProtection(true);" which was introduced in Electron v36.0.0

  15. ButzYung commented on Jun 24, 2025

    @ButzYung

    This problem still persists in v37.0.0...

  16. lvcabral commented on Jul 4, 2025

    @lvcabral

    The proposed workarounds (changing some window properties on blur and focus) works mostly (with some flashes) but not when the blur is caused by a dialog modal (window blur is not triggered) so the phantom title bar appears and is not removed until the dialog closes.
    Image

  17. steveadr commented on Jul 10, 2025

    @steveadr

    Hi guys, the issue still persisted until now....
    Any updates from the team?

    Thank you, team for being supportive ;)

  18. RushNRX commented on Jul 14, 2025

    @RushNRX

    would love some input on this! please, anyone?

  19. RushNRX commented on Jul 16, 2025

    @RushNRX
    Image these changes helped. I did downgrade electron at the end. Kept everything else as is. This is how I initialised my overlay window. Image

    I no longer have the gray title bug.
    changes i did to my packages:
    "@electron-forge/maker-deb": "^7.8.1",
    "@electron-forge/maker-dmg": "^7.8.1",
    "@electron-forge/maker-rpm": "^7.8.1",
    "@electron-forge/maker-squirrel": "^7.8.1",
    "electron": "35.2.1",
    ...
    REMOVED "electron-devtools-installer"
    and here is how i initialised my overlay window and no title bar.
    overlayWindow = new BrowserWindow({
    width: 250,
    height: 120,
    frame: false,
    transparent: true,
    hasShadow: false,
    alwaysOnTop: true,
    skipTaskbar: true,
    hiddenInMissionControl: true,
    resizable: false,
    movable: false,
    minimizable: false,
    maximizable: false,
    closable: false,
    focusable: false,
    show: false,
    webPreferences: {
    nodeIntegration: true,
    contextIsolation: false, // Same as reference code to avoid tooltip issues
    backgroundThrottling: false,
    webSecurity: true,
    allowRunningInsecureContent: false,
    },
    backgroundColor: '#00000000',
    });
    As of 17 july 2025, this is the latest working code and it resolved my issue! So good luck!

    DON'T FORGET to RUN npm install after you update your packages haha.

  20. moved this from 🛑 Blocks Stable to 🛠️ Fixed for Next Release in 37-x-yon Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

36-x-ybug 🪲bug/regression ↩️component/BrowserWindowcomponent/transparenthas-repro-gistplatform/windows

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions