Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

erickzhao
Copy link
Member

@erickzhao erickzhao commented Aug 6, 2019

Description of Change

Fixes #19613.

Implements the will-move event for BrowserWindow on macOS. However, due to limitations in AppKit, I have yet to find a solution that will properly implement event.preventDefault().

Checklist

Release Notes

Notes: Implemented 'will-move' event on BrowserWindow on macOS.

@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Aug 6, 2019
@erickzhao erickzhao force-pushed the intern/will-move-mac branch from 3eeff5d to 2f22e88 Compare August 13, 2019 20:34
@erickzhao erickzhao changed the title [WIP] feat: implement will-move event on macOS feat: implement will-move event on macOS Aug 13, 2019
@erickzhao erickzhao marked this pull request as ready for review August 13, 2019 20:37
@erickzhao erickzhao requested a review from codebytere August 13, 2019 21:54
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM given that we can't programmatically test for this, unfortunately.

shell/browser/ui/cocoa/atom_ns_window_delegate.mm Outdated Show resolved Hide resolved
Copy link
Contributor

@miniak miniak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to do the same here as in #19639

@erickzhao erickzhao requested a review from miniak August 16, 2019 18:02
@codebytere codebytere merged commit 145b4fa into master Aug 20, 2019
@release-clerk
Copy link

release-clerk bot commented Aug 20, 2019

Release Notes Persisted

Implemented 'will-move' event on BrowserWindow on macOS.

@codebytere codebytere deleted the intern/will-move-mac branch August 20, 2019 14:53
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.

Implement BrowserWindow "will-move" for mac

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.