diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-01-20 01:41:24 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-01-20 01:41:24 (GMT) |
commit | 8daa636a59a942f62c80f650ff60cacca81f1daa (patch) | |
tree | aed53578a9cf34538eeca0afa7b4c8204309fabb /abs/core/qt5/ibus-get-display-number-when-screen-number-is-omitted.patch | |
parent | 428e2dc7edc26c053a1aa4f0f378cb9722535356 (diff) | |
download | linhes_pkgbuild-8daa636a59a942f62c80f650ff60cacca81f1daa.zip linhes_pkgbuild-8daa636a59a942f62c80f650ff60cacca81f1daa.tar.gz linhes_pkgbuild-8daa636a59a942f62c80f650ff60cacca81f1daa.tar.bz2 |
qt5: initial inclusion
Diffstat (limited to 'abs/core/qt5/ibus-get-display-number-when-screen-number-is-omitted.patch')
-rw-r--r-- | abs/core/qt5/ibus-get-display-number-when-screen-number-is-omitted.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/core/qt5/ibus-get-display-number-when-screen-number-is-omitted.patch b/abs/core/qt5/ibus-get-display-number-when-screen-number-is-omitted.patch new file mode 100644 index 0000000..54897e0 --- /dev/null +++ b/abs/core/qt5/ibus-get-display-number-when-screen-number-is-omitted.patch @@ -0,0 +1,32 @@ +From c72325d52575cb8a46cc8595c592c27581089dec Mon Sep 17 00:00:00 2001 +From: Takao Fujiwara <tfujiwar@redhat.com> +Date: Tue, 24 Mar 2015 19:08:34 +0900 +Subject: [PATCH] ibus: Get display number when screen number is omitted. + +QIBusPlatformInputContextPrivate::createConnection() parses DISPLAY +variable and it does not get the display number when the screen number +is omitted. E.g. DISPLAY=":1". + +Change-Id: I9f81d8114d4e0f654a27ada67c5dc110eb34cd64 +Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com> +--- + .../ibus/qibusplatforminputcontext.cpp | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp b/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp +index d00435b..673942b 100644 +--- a/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp ++++ b/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp +@@ -351,6 +351,8 @@ QDBusConnection *QIBusPlatformInputContextPrivate::createConnection() + int pos2 = display.indexOf('.', pos); + if (pos2 > 0) + displayNumber = display.mid(pos, pos2 - pos); ++ else ++ displayNumber = display.right(pos); + if (debug) + qDebug() << "host=" << host << "displayNumber" << displayNumber; + +-- +1.7.1 + + |