修复Deepin 20下启用桌面歌词时可能会导致桌面卡死的问题

pull/1402/head
lyswhut 2023-06-05 22:36:00 +08:00
parent fa3fd8d8a4
commit 5097102ca1
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@
- 修复播放某些在线音频会没有声音的问题
- 修复改变播放速率时会导致歌词报错的问题
- 修复tx热门评论昵称被错误切割的问题 (#1397, By: @helloplhm-qwq, @Folltoshe)
- 修复Deepin 20下启用桌面歌词时可能会导致桌面卡死的问题#1288
### 其他

View File

@ -1,6 +1,6 @@
import { join } from 'path'
import { BrowserWindow } from 'electron'
import { debounce, isLinux } from '@common/utils'
import { debounce, isLinux, isWin } from '@common/utils'
import { initWindowSize } from './utils'
import { mainSend } from '@common/mainIpc'
import { encodePath } from '@common/utils/electron'
@ -41,7 +41,7 @@ const winEvent = () => {
'desktopLyric.width': bounds.width,
'desktopLyric.height': bounds.height,
})
} else {
} else if (isWin) { // Linux 不允许将窗口设置出屏幕之外MacOS未知故只在Windows下执行强制设置
// 非主动调整窗口触发的窗口位置变化将重置回设置值
browserWindow!.setBounds({
x: global.lx.appSetting['desktopLyric.x'] ?? 0,