diff --git a/emain/emain.ts b/emain/emain.ts index 80dbcb36d..a152cde06 100644 --- a/emain/emain.ts +++ b/emain/emain.ts @@ -276,7 +276,7 @@ electron.ipcMain.on("getCursorPoint", (event) => { const window = electron.BrowserWindow.fromWebContents(event.sender); const screenPoint = electron.screen.getCursorScreenPoint(); const windowRect = window.getContentBounds(); - const retVal: Point = { + const retVal: Electron.Point = { x: screenPoint.x - windowRect.x, y: screenPoint.y - windowRect.y, };