fix: maximize/restore icon in the SSD title bar displays incorrectly

updates the condition to use surface.shellSurface.isMaximized, ensuring the icon
accurately reflects the window's maximized state when using the shell surface.

Fixes: linuxdeepin/treeland#501

Log:
This commit is contained in:
YaoBing Xiao 2025-08-08 14:58:40 +08:00 committed by zccrs
parent b48e9f3a7d
commit 7642cb91cf
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ Control {
objectName: "maxOrWindedBtn"
sourceComponent: D.WindowButton {
icon.name: surface.isMaximized ? "window_restore" : "window_maximize"
icon.name: surface.shellSurface.isMaximized ? "window_restore" : "window_maximize"
textColor: control.textColor
height: root.height
focusPolicy: Qt.NoFocus