kwin: add xwayland input
This commit is contained in:
parent
29c3fea7b0
commit
0184f0e47c
@ -1,25 +0,0 @@
|
|||||||
From 78a4b554187c18fd86b62089f7730c4273fadd4c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
|
||||||
Date: Wed, 14 Oct 2015 07:05:22 -0500
|
|
||||||
Subject: [PATCH] qdiriterator follow symlinks
|
|
||||||
|
|
||||||
---
|
|
||||||
clients/aurorae/src/aurorae.cpp | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp
|
|
||||||
index 781c960..ad5f420 100644
|
|
||||||
--- a/plugins/kdecorations/aurorae/src/aurorae.cpp
|
|
||||||
+++ b/plugins/kdecorations/aurorae/src/aurorae.cpp
|
|
||||||
@@ -211,7 +211,7 @@ void Helper::init()
|
|
||||||
// so let's try to locate our plugin:
|
|
||||||
QString pluginPath;
|
|
||||||
for (const QString &path : m_engine->importPathList()) {
|
|
||||||
- QDirIterator it(path, QDirIterator::Subdirectories);
|
|
||||||
+ QDirIterator it(path, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
|
||||||
while (it.hasNext()) {
|
|
||||||
it.next();
|
|
||||||
QFileInfo fileInfo = it.fileInfo();
|
|
||||||
--
|
|
||||||
2.5.2
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
|||||||
{ plasmaPackage, ecm, kdoctools, epoxy
|
{
|
||||||
, kactivities, kcompletion, kcmutils, kconfig, kconfigwidgets
|
plasmaPackage, lib, copyPathsToStore,
|
||||||
, kcoreaddons, kcrash, kdeclarative, kdecoration, kglobalaccel
|
ecm, kdoctools,
|
||||||
, ki18n, kiconthemes, kidletime, kinit, kio, knewstuff, knotifications
|
breeze-qt5, epoxy, kactivities, kcompletion, kcmutils, kconfig,
|
||||||
, kpackage, kscreenlocker, kservice, kwayland, kwidgetsaddons, kwindowsystem
|
kconfigwidgets, kcoreaddons, kcrash, kdeclarative, kdecoration, kglobalaccel,
|
||||||
, kxmlgui, libinput, libICE, libSM, plasma-framework, qtdeclarative
|
ki18n, kiconthemes, kidletime, kinit, kio, knewstuff, knotifications,
|
||||||
, qtmultimedia, qtscript, qtx11extras, udev, wayland, xcb-util-cursor
|
kpackage, kscreenlocker, kservice, kwayland, kwidgetsaddons, kwindowsystem,
|
||||||
, makeQtWrapper
|
kxmlgui, libinput, libICE, libSM, plasma-framework, qtdeclarative,
|
||||||
|
qtmultimedia, qtscript, qtx11extras, udev, wayland, xcb-util-cursor, xwayland
|
||||||
}:
|
}:
|
||||||
|
|
||||||
plasmaPackage {
|
plasmaPackage {
|
||||||
@ -15,13 +16,17 @@ plasmaPackage {
|
|||||||
kdoctools
|
kdoctools
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
kactivities kdeclarative kglobalaccel ki18n kio kscreenlocker kwindowsystem
|
breeze-qt5 epoxy kactivities kcmutils kcompletion kconfig kconfigwidgets
|
||||||
plasma-framework qtdeclarative qtmultimedia qtx11extras epoxy kcompletion
|
kcoreaddons kcrash kdeclarative kdecoration kglobalaccel ki18n kiconthemes
|
||||||
kcmutils kconfig kconfigwidgets kcoreaddons kcrash kdecoration kiconthemes
|
kidletime kinit kio knewstuff knotifications kpackage kscreenlocker kservice
|
||||||
kidletime kinit knewstuff knotifications kpackage kservice kwayland
|
kwayland kwidgetsaddons kwindowsystem kxmlgui libinput libICE libSM
|
||||||
kwidgetsaddons kxmlgui libinput libICE libSM qtscript udev wayland
|
plasma-framework qtdeclarative qtmultimedia qtscript qtx11extras udev
|
||||||
xcb-util-cursor
|
wayland xcb-util-cursor
|
||||||
];
|
];
|
||||||
patches = [ ./0001-qdiriterator-follow-symlinks.patch ];
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace main_wayland.cpp \
|
||||||
|
--subst-var-by xwayland ${lib.getBin xwayland}/bin/Xwayland
|
||||||
|
'';
|
||||||
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
||||||
}
|
}
|
||||||
|
13
pkgs/desktops/kde-5/plasma/kwin/follow-symlinks.patch
Normal file
13
pkgs/desktops/kde-5/plasma/kwin/follow-symlinks.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: kwin-5.7.3/plugins/kdecorations/aurorae/src/aurorae.cpp
|
||||||
|
===================================================================
|
||||||
|
--- kwin-5.7.3.orig/plugins/kdecorations/aurorae/src/aurorae.cpp
|
||||||
|
+++ kwin-5.7.3/plugins/kdecorations/aurorae/src/aurorae.cpp
|
||||||
|
@@ -211,7 +211,7 @@ void Helper::init()
|
||||||
|
// so let's try to locate our plugin:
|
||||||
|
QString pluginPath;
|
||||||
|
for (const QString &path : m_engine->importPathList()) {
|
||||||
|
- QDirIterator it(path, QDirIterator::Subdirectories);
|
||||||
|
+ QDirIterator it(path, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
||||||
|
while (it.hasNext()) {
|
||||||
|
it.next();
|
||||||
|
QFileInfo fileInfo = it.fileInfo();
|
2
pkgs/desktops/kde-5/plasma/kwin/series
Normal file
2
pkgs/desktops/kde-5/plasma/kwin/series
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
follow-symlinks.patch
|
||||||
|
xwayland.patch
|
13
pkgs/desktops/kde-5/plasma/kwin/xwayland.patch
Normal file
13
pkgs/desktops/kde-5/plasma/kwin/xwayland.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: kwin-5.7.3/main_wayland.cpp
|
||||||
|
===================================================================
|
||||||
|
--- kwin-5.7.3.orig/main_wayland.cpp
|
||||||
|
+++ kwin-5.7.3/main_wayland.cpp
|
||||||
|
@@ -315,7 +315,7 @@ void ApplicationWayland::startXwaylandSe
|
||||||
|
|
||||||
|
m_xwaylandProcess = new Process(kwinApp());
|
||||||
|
m_xwaylandProcess->setProcessChannelMode(QProcess::ForwardedErrorChannel);
|
||||||
|
- m_xwaylandProcess->setProgram(QStringLiteral("Xwayland"));
|
||||||
|
+ m_xwaylandProcess->setProgram(QStringLiteral("@xwayland@"));
|
||||||
|
QProcessEnvironment env = m_environment;
|
||||||
|
env.insert("WAYLAND_SOCKET", QByteArray::number(wlfd));
|
||||||
|
m_xwaylandProcess->setProcessEnvironment(env);
|
Loading…
x
Reference in New Issue
Block a user