summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorroy <roy>2017-02-07 12:30:29 +0000
committerroy <roy>2017-02-07 12:30:29 +0000
commit367248ea3dc17e9635dee8a5cd2610c4ec8c2efd (patch)
tree08b3c67e33a3659679d16b17ea23731df74cadfd /chat
parent16d9e42cd3d41ed9ffbb371aeba9619f6aeb75da (diff)
downloadpkgsrc-367248ea3dc17e9635dee8a5cd2610c4ec8c2efd.tar.gz
Add a patch from upstream to improve screen refresh times when resized.
Diffstat (limited to 'chat')
-rw-r--r--chat/weechat/Makefile3
-rw-r--r--chat/weechat/distinfo3
-rw-r--r--chat/weechat/patches/patch-src_gui_curses_gui-curses-main.c30
3 files changed, 34 insertions, 2 deletions
diff --git a/chat/weechat/Makefile b/chat/weechat/Makefile
index 8cfbb524454..ea993ea2c05 100644
--- a/chat/weechat/Makefile
+++ b/chat/weechat/Makefile
@@ -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 --git a/chat/weechat/distinfo b/chat/weechat/distinfo
index 99d0b4dee25..359b78a4cf9 100644
--- a/chat/weechat/distinfo
+++ b/chat/weechat/distinfo
@@ -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-ab) = 2a4583e0f5b0336e8c42ad9eb5a65bbec4730207
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 --git a/chat/weechat/patches/patch-src_gui_curses_gui-curses-main.c b/chat/weechat/patches/patch-src_gui_curses_gui-curses-main.c
new file mode 100644
index 00000000000..b49394e363d
--- /dev/null
+++ b/chat/weechat/patches/patch-src_gui_curses_gui-curses-main.c
@@ -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 */