Skip to content

Commit

Permalink
Make always on top work properly on Arch Linux
Browse files Browse the repository at this point in the history
Fixes #207
  • Loading branch information
neilenns committed Nov 14, 2024
1 parent fc92c87 commit ef8d6e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ configManager.setStore(store);
* @param onTop True if the window should be always on top. False otherwise.
*/
const setAlwaysOnTop = (onTop: boolean) => {
if (process.platform === 'win32') {
// Issue 207: Always on top wasn't working on Arch Linux in some situations, and some random old posts
// online seemed to indicate that explicitly specifying a level would fix it. That's how it was
// set up for Windows anyway, so do that on every platform except MacOS.
if (process.platform !== 'darwin') {
mainWindow.setAlwaysOnTop(onTop, 'normal');
} else {
mainWindow.setAlwaysOnTop(onTop);
Expand Down

0 comments on commit ef8d6e1

Please sign in to comment.