You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: migrate windows and layer surfaces on primary hot-unplug
1. Fix onScreenRemoved missing primary migration when removeOutput
already switched primary output before onScreenRemoved is called
2. Extract migrateSurfacesToNewPrimary as a public method to
eliminate duplicated migration logic in onScreenRemoved and
onScreenDisabled
3. Add position correction for remaining output surfaces after
output layout change, with normalGeometry sync for XdgToplevel
4. Migrate layer surfaces to remaining output instead of closing
them when output is removed, and trigger arrangeLayerSurfaces
for final layout
Log: Fix windows and layer surfaces not displaying on remaining screen after primary output hot-unplug in extension mode
Influence:
1. Test hot-unplug primary output in dual-screen extension mode
2. Verify windows on secondary screen move correctly to remaining screen
3. Verify layer surfaces (panel/dock) migrate correctly after unplug
4. Test maximize/restore window after output removal
5. Verify Copy mode is not affected by the changes
fix: 主屏热插拔时正确迁移窗口和层表面
1. 修复 onScreenRemoved 缺失主屏迁移逻辑,当 removeOutput
在 onScreenRemoved 之前已切换主屏输出时
2. 提取 migrateSurfacesToNewPrimary 为公共方法,消除
onScreenRemoved 和 onScreenDisabled 中的重复迁移逻辑
3. 添加输出布局变化后剩余输出上表面位置校正,同步更新
XdgToplevel 的 normalGeometry
4. 输出移除时将层表面迁移到剩余输出而非关闭,并触发
arrangeLayerSurfaces 进行最终布局
Log: 修复扩展模式下拔掉主屏后窗口和面板不显示在剩余屏幕的问题
Influence:
1. 测试双屏扩展模式下拔掉主屏
2. 验证副屏上的窗口正确移动到剩余屏幕
3. 验证层表面(面板/任务栏)在拔屏后正确迁移
4. 测试拔屏后最大化/还原窗口功能
5. 验证复制模式不受此变更影响
Fixes: #1
0 commit comments