Skip to content

Commit

Permalink
tentative fix for cursor on HiDPI
Browse files Browse the repository at this point in the history
  • Loading branch information
KagamiChan committed Dec 27, 2016
1 parent e1bedd6 commit ebffa2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.js
Expand Up @@ -72,6 +72,12 @@ require('flash-player-loader').debug({
let mainWindow, appIcon
global.mainWindow = mainWindow = null

// Fix confused cursor in HiDPI
// https://github.com/electron/electron/issues/7655#issuecomment-259688853
if (process.platform === 'win32') {
app.commandLine.appendSwitch('enable-use-zoom-for-dsf', 'false')
}

app.on ('window-all-closed', () => {
shortcut.unregister()
app.quit()
Expand Down

1 comment on commit ebffa2a

@KagamiChan
Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes #1259

Please sign in to comment.