diff --git a/recipes-kde/plasma/untier/kdeplasma-addons/files/0001-showdesktop-do-check-HAVE_X11-correctly.patch b/recipes-kde/plasma/untier/kdeplasma-addons/files/0001-showdesktop-do-check-HAVE_X11-correctly.patch new file mode 100644 index 00000000..7b45ea09 --- /dev/null +++ b/recipes-kde/plasma/untier/kdeplasma-addons/files/0001-showdesktop-do-check-HAVE_X11-correctly.patch @@ -0,0 +1,47 @@ +From f071db0302346479d8d4473ca31fc8753698412e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Thu, 5 Feb 2015 21:52:18 +0100 +Subject: [PATCH] showdesktop: do check HAVE_X11 correctly +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + applets/showdesktop/plugin/showdesktop.cpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/applets/showdesktop/plugin/showdesktop.cpp b/applets/showdesktop/plugin/showdesktop.cpp +index 99696a1..a1961cd 100644 +--- a/applets/showdesktop/plugin/showdesktop.cpp ++++ b/applets/showdesktop/plugin/showdesktop.cpp +@@ -20,7 +20,7 @@ + #include + #include + +-#ifdef HAVE_X11 ++#if HAVE_X11 + #include + #include + #endif +@@ -31,7 +31,7 @@ ShowDesktop::ShowDesktop() + ,m_down(false) + #endif + { +-#ifdef HAVE_X11 ++#if HAVE_X11 + if (QX11Info::isPlatformX11()) { + NETRootInfo info(QX11Info::connection(), NET::Supported); + m_wm2ShowingDesktop = info.isSupported(NET::WM2ShowingDesktop); +@@ -45,7 +45,7 @@ ShowDesktop::~ShowDesktop() + + void ShowDesktop::showDesktop() + { +-#ifdef HAVE_X11 ++#if HAVE_X11 + if (QX11Info::isPlatformX11()) { + if (m_wm2ShowingDesktop) { + NETRootInfo info(QX11Info::connection(), 0); +-- +1.9.3 + diff --git a/recipes-kde/plasma/untier/kdeplasma-addons/kdeplasma-addons.bb b/recipes-kde/plasma/untier/kdeplasma-addons/kdeplasma-addons.bb index ce76daed..85d5a937 100644 --- a/recipes-kde/plasma/untier/kdeplasma-addons/kdeplasma-addons.bb +++ b/recipes-kde/plasma/untier/kdeplasma-addons/kdeplasma-addons.bb @@ -29,6 +29,8 @@ PV = "${PLASMA_VERSION}" SRC_URI[md5sum] = "ffc167621958ea47162c2a4d5359f381" SRC_URI[sha256sum] = "7cfa7049d1a356d53c8c19a49b03af4a0ebbd745eef4cc17f0f1261d5ea20b99" +SRC_URI += "file://0001-showdesktop-do-check-HAVE_X11-correctly.patch" + FILES_${PN} += " \ ${datadir}/kwin \ ${datadir}/kservices5 \