Skip to content

Fix window state events on Windows - #2929

Merged
zcbenz merged 2 commits into
electron:masterfrom
etiktin:fix_win_state_events
Sep 29, 2015
Merged

zcbenz merged 2 commits into
electron:masterfrom
etiktin:fix_win_state_events

Conversation

@etiktin

@etiktin etiktin commented Sep 28, 2015

Copy link
Copy Markdown
Contributor

This commit fixes the issue we had with window state events (maximize, minimize etc.) not firing when triggered through Aero Snap.
Instead of relying on WM_COMMAND to figure out the window state, which doesn't work with Aero Snap, we now listen to WM_SIZE which does work.

This resolves #1381.

etiktin and others added 2 commits September 28, 2015 20:33
This commit fixes the issue we had with window state events not firing
when triggered through Aero Snap.
Instead of listening to command from the system menu (SC_MAXIMIZE etc.),
we use the WM_SIZE event.

This resolves electron#1381.
@zcbenz

zcbenz commented Sep 29, 2015

Copy link
Copy Markdown
Contributor

Nice!

zcbenz added a commit that referenced this pull request Sep 29, 2015
Fix window state events on Windows
@zcbenz
zcbenz merged commit d848c13 into electron:master Sep 29, 2015
@etiktin
etiktin deleted the fix_win_state_events branch October 5, 2015 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AeroSnap doesn't trigger the maximize/minimize events

2 participants