8000 Calling BrowserWindow.hide() inside minimize/maximize event in Linux · Issue #47446 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Calling BrowserWindow.hide() inside minimize/maximize event in Linux #47446
Closed as not planned
@Devenor

Description

@Devenor

Preflight Checklist

Electron Version

36.4.0

What operating system(s) are you using?

Ubuntu

Operating System Version

Ubuntu 24.04.2 LTS and 25.04

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

After hiding a window by overriding the default minimize or maximize events, it should maintain the expected behaviour when dragging it or clicking the button corresponding to a non overriden event.

Actual Behavior

After showing the window again, when clicking and dragging the title bar or clicking the maximize button if the minimize event has been overriden, or the minimize button if the maximize button has been overriden, the window will hide itself.

Testcase Gist URL

https://gist.github.com/b3773914d6700575d686f63f1b36f5f4

Additional Information

There's a workaround in the Fiddle too, it may help you find the issue. Just comment out lines 13 to 17 in main.js and uncomment lines 20 to 25. The timer at line 23 may vary, I've found that in my PC it works with 100ms, but in another PC with the same Ubuntu version (both in VMs) it has to be increased.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    👀 Unsorted Items

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0