diff options
author | Adriaan de Groot <adridg@FreeBSD.org> | 2019-10-31 19:25:25 +0000 |
---|---|---|
committer | Adriaan de Groot <adridg@FreeBSD.org> | 2019-10-31 19:25:25 +0000 |
commit | 1c7313872980b41150553546dfe9758ad118e2f2 (patch) | |
tree | a01a68932af9f016527ca268dab15a6be0dfc595 /x11/konsole/files/patch-src_main.cpp | |
parent | 938f7e0e5d79cf5df76b2200d25facfab1b3aa21 (diff) | |
download | ports-1c7313872980b41150553546dfe9758ad118e2f2.tar.gz ports-1c7313872980b41150553546dfe9758ad118e2f2.zip |
Fix `konsole --new-tab` with patches from upstream.
`konsole --new-tab` is supposed to open a new tab in the current konsole
(assuming there's only one konsole open), but it was opening a whole
new top-level window instead. Needs patches in dbus services and konsole.
Obtained from: Tomaz Canabrava (upstream maintainer)
Notes
Notes:
svn path=/head/; revision=516192
Diffstat (limited to 'x11/konsole/files/patch-src_main.cpp')
-rw-r--r-- | x11/konsole/files/patch-src_main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/konsole/files/patch-src_main.cpp b/x11/konsole/files/patch-src_main.cpp new file mode 100644 index 000000000000..ed28776d6705 --- /dev/null +++ b/x11/konsole/files/patch-src_main.cpp @@ -0,0 +1,13 @@ +diff --git a/src/main.cpp b/src/main.cpp +index 06f3ce491dbf58270ab5df38794903dab002bf39..b477109fd1a6bf4315efe21dcaaf89570fbd392d 100644 +--- src/main.cpp ++++ src/main.cpp +@@ -167,6 +167,8 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char *argv[]) + if (!Konsole::KonsoleSettings::useSingleInstance() + && !parser->isSet(QStringLiteral("new-tab"))) { + startupOption = KDBusService::Multiple; ++ } else if (Konsole::KonsoleSettings::useSingleInstance()) { ++ startupOption = KDBusService::Unique; + } + + atexit(deleteQApplication); |