Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fix: ensure context menus are able to be interacted with when they co…
Browse files Browse the repository at this point in the history
…ver a title-bar area (via '-webkit-app-region: drag') on Windows

`contextMenuDetail` is a property of a window's state, and not the app state

Fix #12590
  • Loading branch information
petemill committed Jan 17, 2018
1 parent 18040b9 commit b337da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/common/state/windowState.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const api = {
const checkDefaultBrowserDialogIsVisible = isFocused &&
defaultBrowserState.shouldDisplayDialog(state)

return !state.get('contextMenuDetail') &&
return !windowState.has('contextMenuDetail') &&
!windowState.get('popupWindowDetail') &&
!windowState.get('bookmarkDetail') &&
!windowState.getIn(['ui', 'siteInfo', 'isVisible']) &&
Expand Down

0 comments on commit b337da3

Please sign in to comment.