Skip to content

Commit b7b7af3

Browse files
authored
Merge pull request #216 from neilenns/neilenns/issue207
Make always on top work properly on Arch Linux
2 parents 49c83ad + ef8d6e1 commit b7b7af3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ configManager.setStore(store);
4141
* @param onTop True if the window should be always on top. False otherwise.
4242
*/
4343
const setAlwaysOnTop = (onTop: boolean) => {
44-
if (process.platform === 'win32') {
44+
// Issue 207: Always on top wasn't working on Arch Linux in some situations, and some random old posts
45+
// online seemed to indicate that explicitly specifying a level would fix it. That's how it was
46+
// set up for Windows anyway, so do that on every platform except MacOS.
47+
if (process.platform !== 'darwin') {
4548
mainWindow.setAlwaysOnTop(onTop, 'normal');
4649
} else {
4750
mainWindow.setAlwaysOnTop(onTop);

0 commit comments

Comments
 (0)