mirror of
https://github.com/HiMeditator/auto-caption.git
synced 2026-02-15 12:24:48 +08:00
feat(window): 字幕窗口改为始终顶置,窗口顶置选项改为鼠标穿透选项(#26)
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user