chore: update version to 1.2.5 - #734
Conversation
… screens When moving cursor from a low-resolution UOS screen to a high-resolution Windows screen, the system could become completely unresponsive. Root causes addressed: - deskMouseMove used mouse_event 0-65535 normalization which can overflow (DWORD wrap) for negative or out-of-range coordinates, and is affected by DPI context after SetThreadDesktop - mapToNeighbor could produce coordinates 1px beyond destination screen bounds when resolutions differ (e.g. kLeft path: x == dw) Fixes: - Replace mouse_event with SetCursorPos in deskMouseMove, keeping mouse_event as fallback for Vista/7 secure desktop - Add coordinate clamp to virtual screen bounds in deskMouseMove - Add coordinate clamp to destination screen bounds in mapToNeighbor
- bump version to 1.2.5 Log : bump version to 1.2.5
|
TAG Bot TAG: 1.2.5 |
deepin pr auto review你好!我是CodeGeeX。我仔细审查了你提供的Git Diff。这次修改的主要目的是修复在不同分辨率屏幕之间切换时鼠标冻结/越界的问题,核心策略是引入坐标钳位并优先使用 整体来看,修改方向非常正确,有效解决了多显示器和跨分辨率场景下的坐标溢出问题。但在语法逻辑、代码性能和安全性方面,还有一些值得注意和改进的地方。 以下是详细的审查意见: 1. 语法与逻辑问题 1.1: 问题 1.2: 问题 1.3: 2. 代码性能问题 2.1: 3. 代码安全问题 3.1:整数溢出风险 4. 代码质量问题 4.1:魔法数字 问题 4.2:代码结构 💡 改进后的代码建议针对以上问题,我为你重构了相关代码: 1.
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, re2zero The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
TAG Bot ✅ Tag created successfully 📋 Tag Details
|
Summary
Log : bump version to 1.2.5