Skip to content

Conversation

@erickzhao
Copy link
Member

@erickzhao erickzhao commented Mar 10, 2021

Description

Backport of #26668.

See that PR for details.

cc @nornagon

Release Notes

Notes: Fixed a rare crash on Windows that could occur when emitting certain Tray events.

* wip?

* attempt to use weakptr

* apply posttask change to other balloon events

* chore: add clarifying comment on weakptr

* refactor: move weakptr include to implementation

(it's not needed in the header file)

* refactor: use default initializer for weak factory

* refactor: move weakptr usage outside of loop

* fix: convert mouse events as well

* refactor: use member function for balloon events

* fix: check if wicon is truthy in callback

* refactor: bind mouse events with member function

* refactor: inline lparams

* refactor: inline getkeyboardmodifiers()

* chore: correct GetKeyboardModifiers typo
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Mar 10, 2021
@trop trop bot added 12-x-y backport This is a backport PR labels Mar 10, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Mar 10, 2021
@erickzhao erickzhao changed the title fix: delay emitting NotifyIcon events on Windows (#26668) fix: delay emitting NotifyIcon events on Windows Mar 10, 2021
@nornagon nornagon added the semver/patch backwards-compatible bug fixes label Mar 10, 2021
@zcbenz zcbenz merged commit 90d94e4 into electron:12-x-y Mar 13, 2021
@release-clerk
Copy link

release-clerk bot commented Mar 13, 2021

Release Notes Persisted

Fixed a rare crash on Windows that could occur when emitting certain Tray events.

@erickzhao erickzhao deleted the bp12/wndproc-notifyicon branch March 13, 2021 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

12-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants