Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
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
Type
Projects
Status