From: "Andreas Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/konsole/, kde-base/konsole/files/
Date: Sun, 19 Jun 2011 00:03:18 +0000 (UTC) [thread overview]
Message-ID: <70f8d57d959e187fef5e1237cd74d87161002557.dilfridge@gentoo> (raw)
commit: 70f8d57d959e187fef5e1237cd74d87161002557
Author: Andreas K. Huettel (dilfridge) <mail <AT> akhuettel <DOT> de>
AuthorDate: Sun Jun 19 00:02:28 2011 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Jun 19 00:03:08 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=70f8d57d
[kde-base/konsole] Added patch by Martin von Gagern, fixes bug 357945
(Portage version: 2.1.10.3/git/Linux x86_64, signed Manifest commit with key B6C5F7DE)
---
.../konsole/files/konsole-4.6.4-imagesize.patch | 70 ++++++++++++++++++++
kde-base/konsole/konsole-4.6.49.9999.ebuild | 3 +
kde-base/konsole/konsole-9999.ebuild | 2 +
3 files changed, 75 insertions(+), 0 deletions(-)
diff --git a/kde-base/konsole/files/konsole-4.6.4-imagesize.patch b/kde-base/konsole/files/konsole-4.6.4-imagesize.patch
new file mode 100644
index 0000000..03fb8c9
--- /dev/null
+++ b/kde-base/konsole/files/konsole-4.6.4-imagesize.patch
@@ -0,0 +1,70 @@
+Make sure the imageSizeChanged signal is emitted at least once.
+
+Without this patch, the shell or other app might have a wrong idea as to the
+size of the terminal, because the size has never explicitely been set.
+
+This patch uses a boolean flag, to make sure the signal gets emitted at
+least once. An alternative would be to change the default screen sizes.
+One could either choose 24x80 as the default screen size, as this is what
+most apps expect, or 1x1, as this is almost certainly different from any
+screen size actually used. The first approach relies on defaults which need
+not be fixed, and should therefore be avoided. Both approaches force a
+resize of the screens created in the constructor, which is some overhead I'd
+like to avoid. Neither one bool of data nor the added control structures
+seems expensive enough to discourage this approach.
+
+https://bugs.kde.org/show_bug.cgi?id=176902
+https://bugs.gentoo.org/show_bug.cgi?id=357945
+https://bugzilla.redhat.com/show_bug.cgi?id=477359
+
+2011-04-06 Patch by Martin von Gagern
+based on ideas from Kurt V. Hindenburg and Jonathan Wakely
+
+Index: konsole-4.6.1/konsole/src/Emulation.cpp
+===================================================================
+--- konsole-4.6.1.orig/konsole/src/Emulation.cpp
++++ konsole-4.6.1/konsole/src/Emulation.cpp
+@@ -55,7 +55,8 @@ Emulation::Emulation() :
+ _codec(0),
+ _decoder(0),
+ _keyTranslator(0),
+- _usesMouse(false)
++ _usesMouse(false),
++ _imageSizeSet(false)
+ {
+ // create screens with a default size
+ _screen[0] = new Screen(40,80);
+@@ -344,12 +345,20 @@ void Emulation::setImageSize(int lines,
+ QSize newSize(columns,lines);
+
+ if (newSize == screenSize[0] && newSize == screenSize[1])
+- return;
++ {
++ if (!_imageSizeSet)
++ {
++ emit imageSizeChanged(lines,columns);
++ _imageSizeSet = true;
++ }
++ return;
++ }
+
+ _screen[0]->resizeImage(lines,columns);
+ _screen[1]->resizeImage(lines,columns);
+
+ emit imageSizeChanged(lines,columns);
++ _imageSizeSet = true;
+
+ bufferedUpdate();
+ }
+Index: konsole-4.6.1/konsole/src/Emulation.h
+===================================================================
+--- konsole-4.6.1.orig/konsole/src/Emulation.h
++++ konsole-4.6.1/konsole/src/Emulation.h
+@@ -462,6 +462,7 @@ private:
+ bool _usesMouse;
+ QTimer _bulkTimer1;
+ QTimer _bulkTimer2;
++ bool _imageSizeSet;
+
+ };
+
diff --git a/kde-base/konsole/konsole-4.6.49.9999.ebuild b/kde-base/konsole/konsole-4.6.49.9999.ebuild
index bb4a2b8..68bdc20 100644
--- a/kde-base/konsole/konsole-4.6.49.9999.ebuild
+++ b/kde-base/konsole/konsole-4.6.49.9999.ebuild
@@ -36,3 +36,6 @@ DEPEND="${COMMONDEPEND}
)
"
RDEPEND="${COMMONDEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-4.6.4-imagesize.patch" )
+
diff --git a/kde-base/konsole/konsole-9999.ebuild b/kde-base/konsole/konsole-9999.ebuild
index c23bdb7..9395f59 100644
--- a/kde-base/konsole/konsole-9999.ebuild
+++ b/kde-base/konsole/konsole-9999.ebuild
@@ -37,3 +37,5 @@ DEPEND="${COMMONDEPEND}
)
"
RDEPEND="${COMMONDEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-4.6.4-imagesize.patch" )
next reply other threads:[~2011-06-19 0:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-19 0:03 Andreas Hüttel [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-08-03 21:09 [gentoo-commits] proj/kde:master commit in: kde-base/konsole/, kde-base/konsole/files/ Andreas Hüttel
2013-09-16 10:40 Michael Palimaka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70f8d57d959e187fef5e1237cd74d87161002557.dilfridge@gentoo \
--to=dilfridge@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox