aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 01612d0d0ae..be61c15afdd 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -906,6 +906,7 @@ x_encode_char (c, char2b, font_info, charset, two_byte_p)
906 /* It's a program. */ 906 /* It's a program. */
907 struct ccl_program *ccl = font_info->font_encoder; 907 struct ccl_program *ccl = font_info->font_encoder;
908 908
909 check_ccl_update (ccl);
909 if (CHARSET_DIMENSION (charset) == 1) 910 if (CHARSET_DIMENSION (charset) == 1)
910 { 911 {
911 ccl->reg[0] = CHARSET_ID (charset); 912 ccl->reg[0] = CHARSET_ID (charset);
@@ -6782,12 +6783,6 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6782 { 6783 {
6783 dpyinfo->grabbed |= (1 << event.xbutton.button); 6784 dpyinfo->grabbed |= (1 << event.xbutton.button);
6784 last_mouse_frame = f; 6785 last_mouse_frame = f;
6785 /* Ignore any mouse motion that happened
6786 before this event; any subsequent mouse-movement
6787 Emacs events should reflect only motion after
6788 the ButtonPress. */
6789 if (f != 0)
6790 f->mouse_moved = 0;
6791 6786
6792 if (!tool_bar_p) 6787 if (!tool_bar_p)
6793 last_tool_bar_item = -1; 6788 last_tool_bar_item = -1;
@@ -6795,6 +6790,12 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6795 else 6790 else
6796 dpyinfo->grabbed &= ~(1 << event.xbutton.button); 6791 dpyinfo->grabbed &= ~(1 << event.xbutton.button);
6797 6792
6793 /* Ignore any mouse motion that happened before this event;
6794 any subsequent mouse-movement Emacs events should reflect
6795 only motion after the ButtonPress/Release. */
6796 if (f != 0)
6797 f->mouse_moved = 0;
6798
6798#if defined (USE_X_TOOLKIT) || defined (USE_GTK) 6799#if defined (USE_X_TOOLKIT) || defined (USE_GTK)
6799 f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); 6800 f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window);
6800 /* For a down-event in the menu bar, 6801 /* For a down-event in the menu bar,