feat(window): 字幕窗口改为始终顶置,窗口顶置选项改为鼠标穿透选项(#26)

This commit is contained in:
himeditator
2026-01-31 13:38:53 +08:00
parent 4f9d33abc1
commit aed15af386
15 changed files with 48 additions and 25 deletions

View File

@@ -77,10 +77,9 @@ class CaptionWindow {
}
})
ipcMain.on('caption.pin.set', (_, pinned) => {
ipcMain.on('caption.mouseEvents.ignore', (_, ignore: boolean) => {
if(this.window){
if(pinned) this.window.setAlwaysOnTop(true, 'screen-saver')
else this.window.setAlwaysOnTop(false)
this.window.setIgnoreMouseEvents(ignore, { forward: ignore })
}
})
}