git » kwin.git » commit cd74c02

Fix XWayland apps scaling (FS#78468)

author Antonio Rojas
2023-05-10 12:32:35 UTC
committer Antonio Rojas
2023-05-10 12:32:35 UTC
parent 40310feb2da82ea0c958f549d21726ec8db14b8f

Fix XWayland apps scaling (FS#78468)

PKGBUILD +9 -3

diff --git a/PKGBUILD b/PKGBUILD
index 005a22c..8e0422e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgname=kwin
 pkgver=5.27.5
 _dirver=$(echo $pkgver | cut -d. -f1-3)
-pkgrel=1
+pkgrel=2
 pkgdesc='An easy to use, but flexible, composited Window Manager'
 arch=(x86_64)
 url='https://kde.org/plasma-desktop/'
@@ -16,15 +16,21 @@ makedepends=(extra-cmake-modules qt5-tools kdoctools krunner wayland-protocols p
 optdepends=('maliit-keyboard: virtual keyboard for kwin-wayland')
 replaces=(kwayland-server)
 groups=(plasma)
-source=(https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz{,.sig})
+source=(https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz{,.sig}
+        https://invent.kde.org/plasma/kwin/-/commit/2237391e.patch)
 install=$pkgname.install
 sha256sums=('bb1226b15919681ea5f1de58b24ea4b568ea3f2b5452411f76daa80eb30c20ea'
-            'SKIP')
+            'SKIP'
+            'ab43b696a25ab0f791bfe9889170027f753a3aaa1ecfeed65440497e944cf5e1')
 validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Esk-Riddell <jr@jriddell.org>
               '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D'  # Bhushan Shah <bshah@kde.org>
               'D07BD8662C56CB291B316EB2F5675605C74E02CF'  # David Edmundson <davidedmundson@kde.org>
               '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < 2237391e.patch # Fix scaling of XWayland apps
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver \
     -DCMAKE_INSTALL_LIBEXECDIR=lib \