Skip to content

Commit

Permalink
Merge pull request #94 from neilenns/neilenns/issue90
Browse files Browse the repository at this point in the history
Make 'always on top' always work on Windows
  • Loading branch information
pierr3 authored Jun 5, 2024
2 parents aacc898 + bf6e2e5 commit 524c02a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/extern/afv-native
Submodule afv-native updated 1 files
+0 −5 CMakeLists.txt
6 changes: 3 additions & 3 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ app.on('quit', async () => {
await TrackAudioAfv.Exit();
});

// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and import them here.
ipcMain.on('set-always-on-top', (_, state: boolean) => {
mainWindow.setAlwaysOnTop(state);
// Issue 90: Attempt to make always on top actually work all the time on Windows. There's
// an old Electron bug about needing to add "normal": https://github.com/electron/electron/issues/20933.
mainWindow.setAlwaysOnTop(state, 'normal');
currentConfiguration.alwaysOnTop = state;
saveConfig();
});
Expand Down

0 comments on commit 524c02a

Please sign in to comment.