diff options
| author | Gerd Moellmann | 2000-02-05 16:50:32 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-02-05 16:50:32 +0000 |
| commit | 59ddecde2a4f18fd12ae9a0ffb0089861f00f8cf (patch) | |
| tree | d0fb416bcdb6d892d880f6287ca0689c420a5f8b /src | |
| parent | 71e1147d35b7832e855650e33cd627162b59a7cb (diff) | |
| download | emacs-59ddecde2a4f18fd12ae9a0ffb0089861f00f8cf.tar.gz emacs-59ddecde2a4f18fd12ae9a0ffb0089861f00f8cf.zip | |
* xterm.c (x_display_and_set_cursor): Set pre-edit area.
(x_display_cursor): Don't set it here.
(XTread_socket) [HAVE_X_I18N] <KeyPress, KeyRelease>: Don't
dispatch the event.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/xterm.c | 31 |
2 files changed, 28 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 470f5ec9aec..9bc3d6ab634 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> | ||
| 2 | |||
| 3 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit | ||
| 4 | area. | ||
| 5 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | ||
| 6 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | ||
| 7 | dispatch the event. | ||
| 8 | |||
| 1 | 2000-02-04 Dave Love <fx@gnu.org> | 9 | 2000-02-04 Dave Love <fx@gnu.org> |
| 2 | 10 | ||
| 3 | * fileio.c: Remove some unused vars. | 11 | * fileio.c: Remove some unused vars. |
diff --git a/src/xterm.c b/src/xterm.c index bb011dd7136..b632859249c 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9490,10 +9490,24 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 9490 | else | 9490 | else |
| 9491 | abort (); | 9491 | abort (); |
| 9492 | } | 9492 | } |
| 9493 | #ifdef HAVE_X_I18N | ||
| 9494 | /* Don't dispatch this event since XtDispatchEvent calls | ||
| 9495 | XFilterEvent, and two calls in a row may freeze the | ||
| 9496 | client. */ | ||
| 9497 | break; | ||
| 9498 | #else | ||
| 9493 | goto OTHER; | 9499 | goto OTHER; |
| 9500 | #endif | ||
| 9494 | 9501 | ||
| 9495 | case KeyRelease: | 9502 | case KeyRelease: |
| 9503 | #ifdef HAVE_X_I18N | ||
| 9504 | /* Don't dispatch this event since XtDispatchEvent calls | ||
| 9505 | XFilterEvent, and two calls in a row may freeze the | ||
| 9506 | client. */ | ||
| 9507 | break; | ||
| 9508 | #else | ||
| 9496 | goto OTHER; | 9509 | goto OTHER; |
| 9510 | #endif | ||
| 9497 | 9511 | ||
| 9498 | /* Here's a possible interpretation of the whole | 9512 | /* Here's a possible interpretation of the whole |
| 9499 | FocusIn-EnterNotify FocusOut-LeaveNotify mess. If | 9513 | FocusIn-EnterNotify FocusOut-LeaveNotify mess. If |
| @@ -10387,6 +10401,12 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y) | |||
| 10387 | default: | 10401 | default: |
| 10388 | abort (); | 10402 | abort (); |
| 10389 | } | 10403 | } |
| 10404 | |||
| 10405 | #ifdef HAVE_X_I18N | ||
| 10406 | if (w == XWINDOW (f->selected_window)) | ||
| 10407 | if (FRAME_XIC (f) && (FRAME_XIC_STYLE (f) & XIMPreeditPosition)) | ||
| 10408 | xic_set_preeditarea (w, x, y); | ||
| 10409 | #endif | ||
| 10390 | } | 10410 | } |
| 10391 | 10411 | ||
| 10392 | #ifndef XFlush | 10412 | #ifndef XFlush |
| @@ -10409,17 +10429,6 @@ x_display_cursor (w, on, hpos, vpos, x, y) | |||
| 10409 | { | 10429 | { |
| 10410 | BLOCK_INPUT; | 10430 | BLOCK_INPUT; |
| 10411 | x_display_and_set_cursor (w, on, hpos, vpos, x, y); | 10431 | x_display_and_set_cursor (w, on, hpos, vpos, x, y); |
| 10412 | |||
| 10413 | #ifdef HAVE_X_I18N | ||
| 10414 | { | ||
| 10415 | struct frame *f = XFRAME (w->frame); | ||
| 10416 | |||
| 10417 | if (w == XWINDOW (f->selected_window)) | ||
| 10418 | if (FRAME_XIC (f) && (FRAME_XIC_STYLE (f) & XIMPreeditPosition)) | ||
| 10419 | xic_set_preeditarea (w, x, y); | ||
| 10420 | } | ||
| 10421 | #endif | ||
| 10422 | |||
| 10423 | UNBLOCK_INPUT; | 10432 | UNBLOCK_INPUT; |
| 10424 | } | 10433 | } |
| 10425 | 10434 | ||