summaryrefslogtreecommitdiff
path: root/x11/kterm/patches
diff options
context:
space:
mode:
authortoshii <toshii>2001-04-23 04:44:21 +0000
committertoshii <toshii>2001-04-23 04:44:21 +0000
commitff55a0d645bb95beef91ddefa63ffa209d3fe6d2 (patch)
tree23f4c4465c9bc13fa644635a2589dfe333c89b1c /x11/kterm/patches
parent8eaa8b53fba6e642bbbaaad7a5528f88f18b519c (diff)
downloadpkgsrc-ff55a0d645bb95beef91ddefa63ffa209d3fe6d2.tar.gz
Pullup rev. 1.2 from xsrc/xc/programs/xterm/misc.c.
Fixes forever solid cursor bug.
Diffstat (limited to 'x11/kterm/patches')
-rw-r--r--x11/kterm/patches/patch-ab37
1 files changed, 37 insertions, 0 deletions
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 ||