Repository navigation
Conversation
1. Root cause: MainWindow constructor synchronously blocked the UI thread with ThreadExecXrandr before show() was called, causing incomplete window rendering on slow xrandr/DBus response 2. Fix: wrap ThreadExecXrandr calls in QTimer::singleShot(0, ...) in both constructor and slotListItemClicked to defer execution until after show() and event loop startup 3. Impact: monitorNumber detection logic preserved, only execution timing changed from sync to async; window renders immediately Log: fix incomplete device manager window rendering on slow platforms Influence: 1. Test window opens with complete UI rendering on Loongson 3A6000 2. Test left menu item clicks load device info without UI freeze 3. Test monitor number change detection still triggers refresh fix: 延迟 MainWindow 中 ThreadExecXrandr 为异步执行 1. 根因:MainWindow 构造函数在 show() 之前同步阻塞 UI 线程执行 ThreadExecXrandr,当 xrandr/DBus 慢响应时导致窗口渲染不完整 2. 方案:在构造函数和 slotListItemClicked 中使用 QTimer::singleShot(0, ...) 包装 ThreadExecXrandr 调用, 将阻塞调用延迟到 show() 后事件循环启动时执行 3. 影响:monitorNumber 检测逻辑保留不变,仅执行时序从同步改为 异步,窗口可及时渲染 Log: 修复慢响应平台上设备管理器窗口显示不全的问题 Influence: 1. 在龙芯 3A6000 平台测试窗口打开后界面完整显示 2. 测试左侧菜单项点击时设备信息加载无卡顿 3. 测试显示器数量变化检测仍能正常触发刷新 PMS: BUG-368943
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pengfeixx 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 |
Reviewer's GuideImplementationDefer both monitor-count checks until the event loop runs so xrandr/DBus waits do not block initial display or menu-item handling.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
TAG Bot New tag: 6.0.77 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: defer ThreadExecXrandr to async in MainWindow init
thread with ThreadExecXrandr before show() was called, causing
incomplete window rendering on slow xrandr/DBus response
both constructor and slotListItemClicked to defer execution until
after show() and event loop startup
timing changed from sync to async; window renders immediately
Log: fix incomplete device manager window rendering on slow platforms
Influence:
fix: 延迟 MainWindow 中 ThreadExecXrandr 为异步执行
ThreadExecXrandr,当 xrandr/DBus 慢响应时导致窗口渲染不完整
QTimer::singleShot(0, ...) 包装 ThreadExecXrandr 调用,
将阻塞调用延迟到 show() 后事件循环启动时执行
异步,窗口可及时渲染
Log: 修复慢响应平台上设备管理器窗口显示不全的问题
Influence:
PMS: BUG-368943
Summary by Sourcery
Defer monitor detection during window initialization and item selection so the device-manager UI renders responsively on slow platforms.
Bug Fixes: