diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c index c24802bab6b..71e1e2de1e8 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4602,11 +4602,14 @@ x_create_toolkit_scroll_bar (f, bar) | |||
| 4602 | char *initial = ""; | 4602 | char *initial = ""; |
| 4603 | char *val = initial; | 4603 | char *val = initial; |
| 4604 | XtVaGetValues (widget, XtNscrollVCursor, (XtPointer) &val, | 4604 | XtVaGetValues (widget, XtNscrollVCursor, (XtPointer) &val, |
| 4605 | #ifdef XtNarrowScrollbars | ||
| 4606 | XtNarrowScrollbars, (XtPointer) &xaw3d_arrow_scroll, | ||
| 4607 | #endif | ||
| 4605 | XtNpickTop, (XtPointer) &xaw3d_pick_top, NULL); | 4608 | XtNpickTop, (XtPointer) &xaw3d_pick_top, NULL); |
| 4606 | if (val == initial) | 4609 | if (xaw3d_arrow_scroll || val == initial) |
| 4607 | { /* ARROW_SCROLL */ | 4610 | { /* ARROW_SCROLL */ |
| 4608 | xaw3d_arrow_scroll = True; | 4611 | xaw3d_arrow_scroll = True; |
| 4609 | /* Isn't that just a personal preference ? -sm */ | 4612 | /* Isn't that just a personal preference ? --Stef */ |
| 4610 | XtVaSetValues (widget, XtNcursorName, "top_left_arrow", NULL); | 4613 | XtVaSetValues (widget, XtNcursorName, "top_left_arrow", NULL); |
| 4611 | } | 4614 | } |
| 4612 | } | 4615 | } |
| @@ -6789,12 +6792,6 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6789 | { | 6792 | { |
| 6790 | dpyinfo->grabbed |= (1 << event.xbutton.button); | 6793 | dpyinfo->grabbed |= (1 << event.xbutton.button); |
| 6791 | last_mouse_frame = f; | 6794 | last_mouse_frame = f; |
| 6792 | /* Ignore any mouse motion that happened | ||
| 6793 | before this event; any subsequent mouse-movement | ||
| 6794 | Emacs events should reflect only motion after | ||
| 6795 | the ButtonPress. */ | ||
| 6796 | if (f != 0) | ||
| 6797 | f->mouse_moved = 0; | ||
| 6798 | 6795 | ||
| 6799 | if (!tool_bar_p) | 6796 | if (!tool_bar_p) |
| 6800 | last_tool_bar_item = -1; | 6797 | last_tool_bar_item = -1; |
| @@ -6802,6 +6799,12 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6802 | else | 6799 | else |
| 6803 | dpyinfo->grabbed &= ~(1 << event.xbutton.button); | 6800 | dpyinfo->grabbed &= ~(1 << event.xbutton.button); |
| 6804 | 6801 | ||
| 6802 | /* Ignore any mouse motion that happened before this event; | ||
| 6803 | any subsequent mouse-movement Emacs events should reflect | ||
| 6804 | only motion after the ButtonPress/Release. */ | ||
| 6805 | if (f != 0) | ||
| 6806 | f->mouse_moved = 0; | ||
| 6807 | |||
| 6805 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 6808 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 6806 | f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); | 6809 | f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); |
| 6807 | /* For a down-event in the menu bar, | 6810 | /* For a down-event in the menu bar, |