diff options
| author | Dmitry Antipov | 2014-09-24 11:17:51 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-09-24 11:17:51 +0400 |
| commit | 4b930ccbb4fc4b848f318e09eddd172c2acf9b9b (patch) | |
| tree | 349f033caa6278c11cae123b8d2f949ec7e3df10 /src/term.c | |
| parent | 4620e6bccd98625208d8be4d960d24119a20594f (diff) | |
| download | emacs-4b930ccbb4fc4b848f318e09eddd172c2acf9b9b.tar.gz emacs-4b930ccbb4fc4b848f318e09eddd172c2acf9b9b.zip | |
* termhooks.h (enum scroll_bar_part): Begin from 0 to allow...
(struct input_event): ...unsigned bitfields. Likewise for
`event_kind' member. Prefer unsigned for `code' and 'modifiers'.
Use `timestamp' for HELP_EVENT position. Add compile-time assert.
* keyboard.c (gen_help_event, kbd_buffer_store_help_event)
(kbd_buffer_get_event): Adjust users.
(scroll_bar_parts): Add Qnil to match scroll_bar_nowhere.
(make_scroll_bar_position): New function, refactored out of...
(make_lispy_event): ...adjusted user.
* nsterm.h (EmacsScroller): Use enum for `last_hit_part' member.
* nsterm.m (ns_mouse_position, mouseUp):
* term.c (term_mouse_position):
* w32inevt.c (w32_console_mouse_position):
* w32term.c (w32_mouse_position):
* xterm.c (XTmouse_position): Use scroll_bar_above_handle.
(x_send_scroll_bar_event, xm_scroll_callback, xg_scroll_callback):
Prefer enum and explicit enum members to integers and numeric values.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 0a1b3dd13e2..572435bdd1a 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2540,7 +2540,7 @@ term_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window, | |||
| 2540 | (*fp)->mouse_moved = 0; | 2540 | (*fp)->mouse_moved = 0; |
| 2541 | 2541 | ||
| 2542 | *bar_window = Qnil; | 2542 | *bar_window = Qnil; |
| 2543 | *part = 0; | 2543 | *part = scroll_bar_above_handle; |
| 2544 | 2544 | ||
| 2545 | XSETINT (*x, last_mouse_x); | 2545 | XSETINT (*x, last_mouse_x); |
| 2546 | XSETINT (*y, last_mouse_y); | 2546 | XSETINT (*y, last_mouse_y); |