pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/weechat Add a patch from upstream to improve scre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f2abd0708bac
branches:  trunk
changeset: 358203:f2abd0708bac
user:      roy <roy%pkgsrc.org@localhost>
date:      Tue Feb 07 12:30:29 2017 +0000

description:
Add a patch from upstream to improve screen refresh times when resized.

diffstat:

 chat/weechat/Makefile                                       |   3 +-
 chat/weechat/distinfo                                       |   3 +-
 chat/weechat/patches/patch-src_gui_curses_gui-curses-main.c |  30 +++++++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)

diffs (62 lines):

diff -r f58f9806347d -r f2abd0708bac chat/weechat/Makefile
--- a/chat/weechat/Makefile     Tue Feb 07 12:21:08 2017 +0000
+++ b/chat/weechat/Makefile     Tue Feb 07 12:30:29 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.70 2017/01/22 15:31:28 jperkin Exp $
+# $NetBSD: Makefile,v 1.71 2017/02/07 12:30:29 roy Exp $
 
 DISTNAME=      weechat-1.7
+PKG_REVISION=  1
 CATEGORIES=    chat
 MASTER_SITES=  http://www.weechat.org/files/src/
 EXTRACT_SUFX=  .tar.bz2
diff -r f58f9806347d -r f2abd0708bac chat/weechat/distinfo
--- a/chat/weechat/distinfo     Tue Feb 07 12:21:08 2017 +0000
+++ b/chat/weechat/distinfo     Tue Feb 07 12:30:29 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.40 2017/01/22 01:32:53 ryoon Exp $
+$NetBSD: distinfo,v 1.41 2017/02/07 12:30:29 roy Exp $
 
 SHA1 (weechat-1.7.tar.bz2) = f8683d940417e8de1bfd933fff50fa1bbcf5d7b6
 RMD160 (weechat-1.7.tar.bz2) = 0a7b7faad1362599db8273edcc205c2760e917d5
@@ -8,5 +8,6 @@
 SHA1 (patch-cmake_FindRuby_cmake.patch) = c9987559eca2240fddb03023092fa8d02ad25976
 SHA1 (patch-po_CMakeLists.txt) = 9b97a4a4da4175e31ea53352fd0b95e1c985ba1e
 SHA1 (patch-src_gui_curses_CMakeLists_txt) = 28a1b3b9920cc130d0454a18b111d37b8090038b
+SHA1 (patch-src_gui_curses_gui-curses-main.c) = 928b4049177574277f8b250a4c3f6c76b6d48113
 SHA1 (patch-src_gui_curses_gui-curses-term_c) = 900af9a94e74f229b32031bfeced1b85ea3a0ccf
 SHA1 (patch-src_plugins_charset_charset.c) = f0b6e5268908caab5efa8048c8a55b0083ec0ca4
diff -r f58f9806347d -r f2abd0708bac chat/weechat/patches/patch-src_gui_curses_gui-curses-main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/weechat/patches/patch-src_gui_curses_gui-curses-main.c       Tue Feb 07 12:30:29 2017 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_gui_curses_gui-curses-main.c,v 1.1 2017/02/07 12:30:29 roy Exp $
+
+Upstream commit d6977490d0c91b3417a383dd3d1a844657c09f84
+
+core: fix delayed refresh when the signal SIGWINCH is received (terminal resized)
+
+--- src/gui/curses/gui-curses-main.c.orig      2017-02-07 10:57:15.926377533 +0000
++++ src/gui/curses/gui-curses-main.c
+@@ -451,10 +451,6 @@ gui_main_loop ()
+             gui_color_pairs_auto_reset_pending = 1;
+         }
+ 
+-        gui_main_refreshs ();
+-        if (gui_window_refresh_needed && !gui_window_bare_display)
+-            gui_main_refreshs ();
+-
+         if (gui_signal_sigwinch_received)
+         {
+             (void) hook_signal_send ("signal_sigwinch",
+@@ -463,6 +459,10 @@ gui_main_loop ()
+             gui_window_ask_refresh (2);
+         }
+ 
++        gui_main_refreshs ();
++        if (gui_window_refresh_needed && !gui_window_bare_display)
++            gui_main_refreshs ();
++
+         gui_color_pairs_auto_reset_pending = 0;
+ 
+         /* execute fd hooks */



Home | Main Index | Thread Index | Old Index