Skip to content
Merged
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
3 changes: 3 additions & 0 deletions src/main/presenter/windowPresenter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export class WindowPresenter implements IWindowPresenter {
private settingsWindow: BrowserWindow | null = null
private tooltipOverlayWindows = new Map<number, BrowserWindow>()
private pendingTooltipPayload = new Map<number, { x: number; y: number; text: string }>()
// TEMP: Tooltip overlay window creation is disabled while renderer tooltip overlay is unstable.
private isTooltipOverlayEnabled = false

constructor(configPresenter: IConfigPresenter) {
this.windows = new Map()
Expand Down Expand Up @@ -1078,6 +1080,7 @@ export class WindowPresenter implements IWindowPresenter {
}

private getOrCreateTooltipOverlay(parentWindow: BrowserWindow): BrowserWindow | null {
if (!this.isTooltipOverlayEnabled) return null
if (parentWindow.isDestroyed()) return null
// Do not create overlay on macOS fullscreen; it hides traffic lights
if (process.platform === 'darwin' && parentWindow.isFullScreen()) return null
Expand Down