From 851bc9bab3a1c51dd5573a229b7016a315e52f04 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 22 Jun 2020 17:48:04 +0200 Subject: [PATCH] Fix build on s390x --- kwin-s390x.patch | 43 +++++++++++++++++++++++++++++++++++++++++++ kwin.spec | 1 + 2 files changed, 44 insertions(+) create mode 100644 kwin-s390x.patch diff --git a/kwin-s390x.patch b/kwin-s390x.patch new file mode 100644 index 0000000..4665dc4 --- /dev/null +++ b/kwin-s390x.patch @@ -0,0 +1,43 @@ +diff --git a/input.cpp b/input.cpp +index a0ba034ce..8c399af20 100644 +--- a/input.cpp ++++ b/input.cpp +@@ -1669,7 +1669,7 @@ public: + static const auto createDefaultCursor = [] { + WaylandCursorImage defaultCursor; + WaylandCursorImage::Image ret; +- defaultCursor.loadThemeCursor(CursorShape(Qt::CrossCursor), &ret); ++ defaultCursor.loadThemeCursor2(CursorShape(Qt::CrossCursor), &ret); + return ret; + }; + static const auto defaultCursor = createDefaultCursor(); +diff --git a/pointer_input.cpp b/pointer_input.cpp +index 55af1502a..9e96b7331 100644 +--- a/pointer_input.cpp ++++ b/pointer_input.cpp +@@ -1270,6 +1270,12 @@ void CursorImage::loadThemeCursor(const QByteArray &shape, WaylandCursorImage::I + m_waylandImage.loadThemeCursor(shape, m_cursorsByName, image); + } + ++void WaylandCursorImage::loadThemeCursor2(CursorShape shape, WaylandCursorImage::Image *image) ++{ ++ loadThemeCursor(shape, image); ++} ++ ++ + template + void WaylandCursorImage::loadThemeCursor(const T &shape, Image *image) + { +diff --git a/pointer_input.h b/pointer_input.h +index 1ae6a7505..386bc57f8 100644 +--- a/pointer_input.h ++++ b/pointer_input.h +@@ -186,6 +186,9 @@ public: + QImage image; + QPoint hotspot; + }; ++ ++ void loadThemeCursor2(CursorShape shape, WaylandCursorImage::Image *image); ++ + template + void loadThemeCursor(const T &shape, Image *image); diff --git a/kwin.spec b/kwin.spec index 3602386..d77a8d7 100644 --- a/kwin.spec +++ b/kwin.spec @@ -31,6 +31,7 @@ URL: https://userbase.kde.org/KWin Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz ## upstream patches +Patch0: kwin-s390x.patch # Base BuildRequires: extra-cmake-modules