Skip to content

fix(window-transition): apply code review fixes - #8

Merged
glyvut merged 1 commit into
glyvut:feat/animation-newfrom
deepin-wm:fix/review-fixes
Sep 15, 2026
Merged

glyvut merged 1 commit into
glyvut:feat/animation-newfrom
deepin-wm:fix/review-fixes

Conversation

@deepin-wm

Copy link
Copy Markdown

Apply 2 code review fixes from WM-480 review:

  1. Remove #include <QtCore> from surfacewrapper.cpp (already has QTimer and QVariant)
  2. QML WindowTransition.qml: replace opacity: 0 + Component.onCompleted with direct binding opacity: root.direction === 1 ? 1 : 0

Merging this PR will update the feat/animation-new branch and automatically update linuxdeepin#1394.

WM-480

Remove unnecessary #include <QtCore> and fix QML opacity binding
to prevent first-frame flicker on close animations.

移除不必要的 #include <QtCore>,修复 QML opacity 绑定以防止
关闭动画首帧闪烁。

Log: 应用代码审查修复,移除宽泛头文件并修复 opacity 绑定
Issue: Fixes linuxdeepin#1394
Influence: 移除 surfacewrapper.cpp 中过于宽泛的 QtCore 头文件引用,
WindowTransition.qml 中 BufferItem 的 opacity 改为直接绑定,
避免关闭动画时首帧闪烁。
@glyvut
glyvut marked this pull request as ready for review September 15, 2026 00:48
@glyvut
glyvut merged commit f675de2 into glyvut:feat/animation-new Sep 15, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants