diff --git a/pkgs/desktops/deepin/core/dde-shell/default.nix b/pkgs/desktops/deepin/core/dde-shell/default.nix index a27406db9892..a9980375022b 100644 --- a/pkgs/desktops/deepin/core/dde-shell/default.nix +++ b/pkgs/desktops/deepin/core/dde-shell/default.nix @@ -33,6 +33,7 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./fix-path-for-nixos.diff + ./fix-dock-can-not-show-with-qt6_8.diff ]; postPatch = '' diff --git a/pkgs/desktops/deepin/core/dde-shell/fix-dock-can-not-show-with-qt6_8.diff b/pkgs/desktops/deepin/core/dde-shell/fix-dock-can-not-show-with-qt6_8.diff new file mode 100644 index 000000000000..c372dc1e5cf2 --- /dev/null +++ b/pkgs/desktops/deepin/core/dde-shell/fix-dock-can-not-show-with-qt6_8.diff @@ -0,0 +1,20 @@ +diff --git a/panels/dock/OverflowContainer.qml b/panels/dock/OverflowContainer.qml +index 74ca966..312f2a0 100644 +--- a/panels/dock/OverflowContainer.qml ++++ b/panels/dock/OverflowContainer.qml +@@ -52,13 +52,13 @@ Item { + for (let child of listView.contentItem.visibleChildren) { + width = calculateImplicitWidth(width, child.implicitWidth) + } +- return width ++ return Math.max(width, 1) + } + implicitHeight: { + let height = 0 + for (let child of listView.contentItem.visibleChildren) { + height = calculateImplicitHeight(height, child.implicitHeight) + } +- return height ++ return Math.max(height, 1) + } + }