Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/main/main-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ export function createWindow(): void {
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
sandbox: false
sandbox: false,
// Soft-hide parks the window off-screen, which makes Windows report the
// window as occluded; with throttling on, the renderer freezes until the
// window is focused again (queued IPC flushes on click, toolbar hover
// dwell timers never fire).
backgroundThrottling: false
}
})

Expand Down
5 changes: 4 additions & 1 deletion src/main/toolbar-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export function createToolbarWindow(parent: BrowserWindow): void {
parent,
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
sandbox: false
sandbox: false,
// Hover dwell runs on setTimeout in this renderer; it must not be
// throttled while the window is hidden/occluded (see main-window.ts).
backgroundThrottling: false
}
})
ownerWindow = parent
Expand Down