From 0ccd0c3c3e31e72592dc46e371ec77690795da78 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 31 Jul 2023 18:29:50 +0300 Subject: [PATCH] spectacle: backport a patch to fix region capture preview being misaligned --- pkgs/applications/kde/spectacle.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/kde/spectacle.nix b/pkgs/applications/kde/spectacle.nix index 93e3f8563980..7e9c80cd64ab 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