From c896cb75afa0c89c4c1f7f218d05c0db402584b7 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 21 Aug 2025 15:36:46 +0300 Subject: [PATCH] kdePackages.kwin: backport patch recommended by upstream --- pkgs/kde/plasma/kwin/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/kde/plasma/kwin/default.nix b/pkgs/kde/plasma/kwin/default.nix index a7aef2545865..9bd9686130bb 100644 --- a/pkgs/kde/plasma/kwin/default.nix +++ b/pkgs/kde/plasma/kwin/default.nix @@ -1,4 +1,5 @@ { + fetchpatch, mkKdeDerivation, pkg-config, qtquick3d, @@ -25,6 +26,14 @@ mkKdeDerivation { ./0003-plugins-qpa-allow-using-nixos-wrapper.patch ./0001-NixOS-Unwrap-executable-name-for-.desktop-search.patch ./0001-Lower-CAP_SYS_NICE-from-the-ambient-set.patch + + # Backport fix for very annoying flickering on AMD GPUs + # when animating brightness changes. + # FIXME: remove in 6.4.5 + (fetchpatch { + url = "https://invent.kde.org/plasma/kwin/-/commit/7d36003cb073ed2ad48b2743883db993106c347a.patch"; + hash = "sha256-x+GVRU1CIne1TsGJsk2+JbWJi/wuDOFiABXuqgDD9bs="; + }) ]; postPatch = ''