diff options
author | toshii <toshii@pkgsrc.org> | 2001-04-23 04:44:21 +0000 |
---|---|---|
committer | toshii <toshii@pkgsrc.org> | 2001-04-23 04:44:21 +0000 |
commit | cf2f0e80d76d63096bdfb5c61a5ead6728a3c5d3 (patch) | |
tree | 23f4c4465c9bc13fa644635a2589dfe333c89b1c /x11/kterm/patches | |
parent | fd9c81bc7b1357c5e826fc46c7b4618f7e74d394 (diff) | |
download | pkgsrc-cf2f0e80d76d63096bdfb5c61a5ead6728a3c5d3.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-ab | 37 |
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 || |