about summary refs log tree commit diff
path: root/pkgs/applications/kde
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-07-31 18:29:50 +0300
committerK900 <me@0upti.me>2023-07-31 18:29:50 +0300
commit0ccd0c3c3e31e72592dc46e371ec77690795da78 (patch)
tree2c1df5fd655fb40d8fb9d996ffd26997817a0ca5 /pkgs/applications/kde
parent21ad1050bf67f6a31acc38d41b7999e1a0bd0ca0 (diff)
spectacle: backport a patch to fix region capture preview being misaligned
Diffstat (limited to 'pkgs/applications/kde')
-rw-r--r--pkgs/applications/kde/spectacle.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/applications/kde/spectacle.nix b/pkgs/applications/kde/spectacle.nix
index 93e3f8563980d..7e9c80cd64aba 100644
--- a/pkgs/applications/kde/spectacle.nix
+++ b/pkgs/applications/kde/spectacle.nix
@@ -5,11 +5,21 @@
 , knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi
 , qtx11extras, knewstuff, kwayland, qttools, kcolorpicker, kimageannotator
 , qcoro, qtquickcontrols2, wayland, plasma-wayland-protocols, kpurpose, kpipewire
-, wrapGAppsHook
+, wrapGAppsHook, fetchpatch
 }:
 
 mkDerivation {
   pname = "spectacle";
+
+  patches = [
+    # backport fix for region capture with multi-display high-dpi setups
+    # FIXME: remove in 23.08
+    (fetchpatch {
+      url = "https://invent.kde.org/graphics/spectacle/-/commit/d0886c85445fad227b256152a549cb33bd97b776.patch";
+      hash = "sha256-t0+X1pzjlS2OWduMwQBoYbjh+o/SF4hOkAqzz/MJw3E=";
+    })
+  ];
+
   nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
   buildInputs = [
     kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications