From 91ef694115d38a11c1eb89f515dccd68acac4497 Mon Sep 17 00:00:00 2001 From: wei yijun <2o18o424@gmail.com> Date: Wed, 22 Sep 2021 10:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A=E5=92=8C?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/modules/winLyric/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/modules/winLyric/index.js b/src/main/modules/winLyric/index.js index af967e94..9b0471dd 100644 --- a/src/main/modules/winLyric/index.js +++ b/src/main/modules/winLyric/index.js @@ -1,7 +1,7 @@ const path = require('path') const { BrowserWindow } = require('electron') const { winLyric: WIN_LYRIC_EVENT_NAME } = require('../../events/_name') -const { debounce } = require('../../../common/utils') +const { debounce, isLinux } = require('../../../common/utils') const { getLyricWindowBounds } = require('./utils') require('./event') @@ -66,7 +66,8 @@ const winEvent = lyricWindow => { if (global.appSetting.desktopLyric.isLock) { global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: false }) } - if (global.appSetting.desktopLyric.isAlwaysOnTop) { + // linux下每次重开时貌似要重新设置置顶 + if (isLinux && global.appSetting.desktopLyric.isAlwaysOnTop) { global.modules.lyricWindow.setAlwaysOnTop(global.appSetting.desktopLyric.isAlwaysOnTop, 'screen-saver') } })