summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortoshii <toshii@pkgsrc.org>2001-04-23 04:44:21 +0000
committertoshii <toshii@pkgsrc.org>2001-04-23 04:44:21 +0000
commitcf2f0e80d76d63096bdfb5c61a5ead6728a3c5d3 (patch)
tree23f4c4465c9bc13fa644635a2589dfe333c89b1c /x11
parentfd9c81bc7b1357c5e826fc46c7b4618f7e74d394 (diff)
downloadpkgsrc-cf2f0e80d76d63096bdfb5c61a5ead6728a3c5d3.tar.gz
Pullup rev. 1.2 from xsrc/xc/programs/xterm/misc.c.
Fixes forever solid cursor bug.
Diffstat (limited to 'x11')
-rw-r--r--x11/kterm/distinfo3
-rw-r--r--x11/kterm/patches/patch-ab37
2 files changed, 39 insertions, 1 deletions
diff --git a/x11/kterm/distinfo b/x11/kterm/distinfo
index 3b4172ebe04..127a2e33f2b 100644
--- a/x11/kterm/distinfo
+++ b/x11/kterm/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 11:07:41 skrll Exp $
+$NetBSD: distinfo,v 1.3 2001/04/23 04:46:02 toshii Exp $
SHA1 (kterm-6.2.0.tar.gz) = 23b612254e9f7c9f5e233a4bcacc651887a3f7ee
Size (kterm-6.2.0.tar.gz) = 200448 bytes
SHA1 (kterm-620-0213-20001107.diff.gz) = eba96d6cfe4564093d085dc55db03669fffc9b58
Size (kterm-620-0213-20001107.diff.gz) = 11087 bytes
SHA1 (patch-aa) = eaf65b3832b493cf0354b504dc546f42f45af303
+SHA1 (patch-ab) = 011b1fc5033f61784e57030c78f6cca5a82722d1
diff --git a/x11/kterm/patches/patch-ab b/x11/kterm/patches/patch-ab
new file mode 100644
index 00000000000..da89fb6e095
--- /dev/null
+++ b/x11/kterm/patches/patch-ab
@@ -0,0 +1,37 @@
+$NetBSD: patch-ab,v 1.1 2001/04/23 04:44:21 toshii Exp $
+
+--- misc.c.orig Fri Jul 12 14:01:43 1996
++++ misc.c
+@@ -242,9 +242,7 @@
+ (Widget)tekWidget : (Widget)term)))
+ # endif /* !KTERM_NOTEK */
+ #endif
+- if (((ev->detail) != NotifyInferior) &&
+- ev->focus &&
+- !(screen->select & FOCUS))
++ if (((ev->detail) != NotifyInferior) && ev->focus)
+ selectwindow(screen, INWINDOW);
+ }
+
+@@ -271,9 +269,7 @@
+ (Widget)tekWidget : (Widget)term)))
+ # endif /* !KTERM_NOTEK */
+ #endif
+- if (((ev->detail) != NotifyInferior) &&
+- ev->focus &&
+- !(screen->select & FOCUS))
++ if (((ev->detail) != NotifyInferior) && ev->focus)
+ unselectwindow(screen, INWINDOW);
+ }
+
+@@ -358,8 +354,8 @@
+ if(!Ttoggled) TCursorToggle(TOGGLE);
+ } else {
+ #endif /* !KTERM_NOTEK */
+- if (screen->xic)
+- XUnsetICFocus(screen->xic);
++ if (screen->xic && screen->select == 0)
++ XUnsetICFocus(screen->xic);
+ screen->select &= ~flag;
+ if(screen->cursor_state &&
+ (screen->cursor_col != screen->cur_col ||