Skip to content

Commit

Permalink
keep always on top
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 6, 2024
1 parent 2c98d61 commit c519874
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/resolve/floatingWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,16 @@ async function createFloatingWindow(): Promise<void> {
floatingWindow.on('ready-to-show', () => {
applyTheme(customTheme)
floatingWindow?.show()
floatingWindow?.setAlwaysOnTop(true)
})
floatingWindow.on('focus', () => {
floatingWindow?.setAlwaysOnTop(true)
})
floatingWindow.on('blur', () => {
floatingWindow?.setAlwaysOnTop(true)
})
floatingWindow.on('moved', () => {
floatingWindow?.setAlwaysOnTop(true)
if (floatingWindow) floatingWindowState.saveState(floatingWindow)
})
ipcMain.on('updateFloatingWindow', () => {
Expand Down

0 comments on commit c519874

Please sign in to comment.