Commit dcb7198
committed
fix: prevent pending state failure in window platform interface
Remove Qt::QueuedConnection and early return to ensure pending
operations always execute. The previous approach using stack
variable comparisons was unreliable, causing pending state to fail
intermittently. By directly invoking applyPending without queued
connection and removing the unnecessary early return check, we guarantee
consistent pending state application for window feature updates.
Log: Fixed pending state failure issue in treeland window platform
interface
Influence:
1. Verify window features update correctly on treeland platform
2. Test window operations in rapid succession to ensure no pending
failures
3. Run stress tests to confirm stable behavior without stack variable
comparisons
4. Verify backward compatibility with existing treeland window
management
fix: 修复窗口平台接口中 pending 状态失败问题
移除 Qt::QueuedConnection 和提前返回逻辑,确保 pending 操作始终执行。之
前使用栈变量比较的方式不可靠,导致 pending 状态间歇性失效。通过直接调用
applyPending 并移除不必要的提前返回检查,保证了窗口功能更新的 pending 状
态能够一致应用。
Log: 修复了 treeland 窗口平台接口中 pending 状态失败问题
Influence:
1. 验证 treeland 平台上窗口功能更新是否正确
2. 测试快速连续窗口操作,确保无 pending 失败
3. 运行压力测试,确认无栈变量比较带来的不稳定行为
4. 验证与现有 treeland 窗口管理的向后兼容性1 parent 4f21861 commit dcb7198
2 files changed
Lines changed: 1 addition & 3 deletions
File tree
- src/plugins/platform/treeland
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
0 commit comments