From a6f7b5e5ba189b5b1027ff56cebf351cf65c5acf Mon Sep 17 00:00:00 2001 From: liujiangtao Date: Tue, 10 Nov 2026 19:46:20 +0800 Subject: [PATCH] fix(dock): sync the work area after Wayland resize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Keep listening for Dock geometry changes after the drag ends. 2. Write the width for vertical docks and the height for horizontal docks to the saved Dock size. 3. Let the existing exclusive zone binding pick up late size changes. Log: Keep the work area in sync when the Dock is resized on Wayland. fix(dock): 修复 Wayland 下拖动 Dock 后工作区未同步 1. 拖动结束后继续监听 Dock 窗口尺寸变化。 2. 竖向 Dock 保存宽度,横向 Dock 保存高度。 3. 让现有独占区绑定跟随松手后才生效的尺寸。 Log: Wayland 下调整 Dock 大小时同步更新工作区。 --- panels/dock/package/main.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panels/dock/package/main.qml b/panels/dock/package/main.qml index 16ebeb97a..eda2039e9 100644 --- a/panels/dock/package/main.qml +++ b/panels/dock/package/main.qml @@ -862,16 +862,20 @@ Window { Connections { target: dock - enabled: dock.compositorDrivenResize && Applet.isResizing + enabled: dock.compositorDrivenResize + && !hideShowAnimation.running + && !dockAnimation.running function onWidthChanged() { if (dock.useColumnLayout) { dock.dockSize = dock.width + Applet.dockSize = dock.width } } function onHeightChanged() { if (!dock.useColumnLayout) { dock.dockSize = dock.height + Applet.dockSize = dock.height } } }