diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c index d12173297e8..22671a5f168 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6225,6 +6225,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6225 | 6225 | ||
| 6226 | f = x_any_window_to_frame (dpyinfo, event.xkey.window); | 6226 | f = x_any_window_to_frame (dpyinfo, event.xkey.window); |
| 6227 | 6227 | ||
| 6228 | #if ! defined (USE_GTK) | ||
| 6228 | /* If mouse-highlight is an integer, input clears out | 6229 | /* If mouse-highlight is an integer, input clears out |
| 6229 | mouse highlighting. */ | 6230 | mouse highlighting. */ |
| 6230 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) | 6231 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) |
| @@ -6234,6 +6235,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6234 | clear_mouse_face (hlinfo); | 6235 | clear_mouse_face (hlinfo); |
| 6235 | hlinfo->mouse_face_hidden = 1; | 6236 | hlinfo->mouse_face_hidden = 1; |
| 6236 | } | 6237 | } |
| 6238 | #endif | ||
| 6237 | 6239 | ||
| 6238 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS | 6240 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS |
| 6239 | if (f == 0) | 6241 | if (f == 0) |
| @@ -6773,6 +6775,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6773 | #endif | 6775 | #endif |
| 6774 | if (f) | 6776 | if (f) |
| 6775 | { | 6777 | { |
| 6778 | #if ! defined (USE_GTK) | ||
| 6776 | /* Is this in the tool-bar? */ | 6779 | /* Is this in the tool-bar? */ |
| 6777 | if (WINDOWP (f->tool_bar_window) | 6780 | if (WINDOWP (f->tool_bar_window) |
| 6778 | && WINDOW_TOTAL_LINES (XWINDOW (f->tool_bar_window))) | 6781 | && WINDOW_TOTAL_LINES (XWINDOW (f->tool_bar_window))) |
| @@ -6785,13 +6788,11 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6785 | tool_bar_p = EQ (window, f->tool_bar_window); | 6788 | tool_bar_p = EQ (window, f->tool_bar_window); |
| 6786 | 6789 | ||
| 6787 | if (tool_bar_p && event.xbutton.button < 4) | 6790 | if (tool_bar_p && event.xbutton.button < 4) |
| 6788 | { | 6791 | handle_tool_bar_click |
| 6789 | handle_tool_bar_click (f, x, y, | 6792 | (f, x, y, event.xbutton.type == ButtonPress, |
| 6790 | event.xbutton.type == ButtonPress, | 6793 | x_x_to_emacs_modifiers (dpyinfo, event.xbutton.state)); |
| 6791 | x_x_to_emacs_modifiers (dpyinfo, | ||
| 6792 | event.xbutton.state)); | ||
| 6793 | } | ||
| 6794 | } | 6794 | } |
| 6795 | #endif /* !USE_GTK */ | ||
| 6795 | 6796 | ||
| 6796 | if (!tool_bar_p) | 6797 | if (!tool_bar_p) |
| 6797 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 6798 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |