-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrowserWindow 'maximize' and 'unmaximize' events not firing when calling maximize()/unmaximize() with thickFrame: false #27851
Comments
have the same issue |
I believe this is related to this issue: #27838 as electron is not properly calling the the win32 API showWindow which in turn not fire the event. |
Yup, the window events are kinda messed up on Windows... #26076 |
cc @mlaurencin - might be a good one to look at! |
I have the same issue with a frameless BrowserWindow, but in Linux/Gnome. |
Hi @markleutloff this PR may have fixed your issue. Can you try upgrading to either version 11.4.3 or 12.0.3 and see if you the events are firing for you now? |
Tried it out with Linux/Gnome |
@mlaurencin Thank you, I did test it with 11.4.3, 12.0.3 and 12.0.5, all fired the events for me. Tested on my Win10 machine. |
@markleutloff Great to hear. @kochelmonster Since you are experiencing this issue on a different version number and OS than was originally reported, could you open a new issue with your specific situation? This can ensure that the right things are being tested, and allow other maintainers to understand the situation more clearly. I will close this issue for now, but if someone is still experiencing this on Windows 10, even after testing the versions in this comment, then it may be considered for reopening. |
Preflight Checklist
Issue Details
Expected Behavior
maximize and unmaximize events should be fired.
Actual Behavior
maximize and unmaximize events are not fired.
To Reproduce
Gist: https://gist.github.com/2b3846eb9e357acb8137efe5ee6d0a52
Create a window with thickFrame set to false and attach event listeners to "maximize" and "unmaxmize", then call window.maximize() dns window.unmaximize()
The text was updated successfully, but these errors were encountered: