Skip to content

Commit e7d7578

Browse files
Mars-cbdeepin-bot[bot]
authored andcommitted
fix: 修复扩展模式切换到复制模式失效的问题
显示配置文件出错,设置复制模式之前校验文件数据 Log: 修复扩展模式切换到复制模式失效的问题 Bug: https://pms.uniontech.com/bug-view-180033.html Influence: 切换显示模式
1 parent 85bf156 commit e7d7578

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

display/manager.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,14 @@ func (m *Manager) applyModeMirror(monitorsId monitorsId, monitorMap map[uint32]*
14431443
return
14441444
}
14451445
}
1446+
for _, config := range configs {
1447+
if config.X != 0 || config.Y != 0 {
1448+
logger.Warning("mirror config is wrong, correct the config")
1449+
needSaveCfg = true
1450+
config.X = 0
1451+
config.Y = 0
1452+
}
1453+
}
14461454

14471455
err = m.applySysMonitorConfigs(DisplayModeMirror, monitorsId, monitorMap, configs, options)
14481456
if err != nil {

0 commit comments

Comments
 (0)