修复GNOME等桌面下每次打开应用时需重新设置歌词窗口置顶的问题 (#636)
parent
592b670e96
commit
57db286405
|
@ -8,3 +8,4 @@
|
||||||
- 修复点击播放详情页的进度条跳进度时会出现偏移的问题
|
- 修复点击播放详情页的进度条跳进度时会出现偏移的问题
|
||||||
- 修复在有提示信息的地方长按鼠标按键时提示信息会闪烁的问题
|
- 修复在有提示信息的地方长按鼠标按键时提示信息会闪烁的问题
|
||||||
- 修复下载歌曲时的歌词下载不尝试获取缓存歌词的问题
|
- 修复下载歌曲时的歌词下载不尝试获取缓存歌词的问题
|
||||||
|
- 修复GNOME等桌面下每次打开应用时需重新设置歌词窗口置顶的问题
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const { BrowserWindow } = require('electron')
|
const { BrowserWindow } = require('electron')
|
||||||
const { winLyric: WIN_LYRIC_EVENT_NAME } = require('../../events/_name')
|
const { winLyric: WIN_LYRIC_EVENT_NAME } = require('../../events/_name')
|
||||||
const { debounce } = require('../../../common/utils')
|
const { debounce, isLinux } = require('../../../common/utils')
|
||||||
const { getLyricWindowBounds } = require('./utils')
|
const { getLyricWindowBounds } = require('./utils')
|
||||||
|
|
||||||
require('./event')
|
require('./event')
|
||||||
|
@ -66,6 +66,10 @@ const winEvent = lyricWindow => {
|
||||||
if (global.appSetting.desktopLyric.isLock) {
|
if (global.appSetting.desktopLyric.isLock) {
|
||||||
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: false })
|
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: false })
|
||||||
}
|
}
|
||||||
|
// linux下每次重开时貌似要重新设置置顶
|
||||||
|
if (isLinux && global.appSetting.desktopLyric.isAlwaysOnTop) {
|
||||||
|
global.modules.lyricWindow.setAlwaysOnTop(global.appSetting.desktopLyric.isAlwaysOnTop, 'screen-saver')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue