aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-04-10 22:25:45 +0000
committerKarl Heuer1997-04-10 22:25:45 +0000
commit26459b28a9dada0a2ee3f84d3a229638c9480d4d (patch)
tree1abaf550bb99bf2b8dfba9e112372034cd2139a0 /src
parente995085f70d60ffcedfc987ec249d4bbd157f250 (diff)
downloademacs-26459b28a9dada0a2ee3f84d3a229638c9480d4d.tar.gz
emacs-26459b28a9dada0a2ee3f84d3a229638c9480d4d.zip
(construct_menu_click, note_mouse_highlight, fast_find_position):
Fix Lisp_Object/integer confusion.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index ec8cfc43c05..de6b336db53 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2205,7 +2205,7 @@ construct_menu_click (result, event, f)
2205 /* Make the event type no_event; we'll change that when we decide 2205 /* Make the event type no_event; we'll change that when we decide
2206 otherwise. */ 2206 otherwise. */
2207 result->kind = mouse_click; 2207 result->kind = mouse_click;
2208 XSETINT (result->code, event->button - Button1); 2208 result->code = event->button - Button1;
2209 result->timestamp = event->time; 2209 result->timestamp = event->time;
2210 result->modifiers = (x_x_to_emacs_modifiers (FRAME_X_DISPLAY_INFO (f), 2210 result->modifiers = (x_x_to_emacs_modifiers (FRAME_X_DISPLAY_INFO (f),
2211 event->state) 2211 event->state)
@@ -2305,8 +2305,9 @@ note_mouse_highlight (f, x, y)
2305 if (WINDOWP (window) && portion == 0 && row >= 0 && column >= 0 2305 if (WINDOWP (window) && portion == 0 && row >= 0 && column >= 0
2306 && row < FRAME_HEIGHT (f) && column < FRAME_WIDTH (f) 2306 && row < FRAME_HEIGHT (f) && column < FRAME_WIDTH (f)
2307 && EQ (w->window_end_valid, w->buffer) 2307 && EQ (w->window_end_valid, w->buffer)
2308 && w->last_modified == BUF_MODIFF (XBUFFER (w->buffer)) 2308 && XFASTINT (w->last_modified) == BUF_MODIFF (XBUFFER (w->buffer))
2309 && w->last_overlay_modified == BUF_OVERLAY_MODIFF (XBUFFER (w->buffer))) 2309 && (XFASTINT (w->last_overlay_modified)
2310 == BUF_OVERLAY_MODIFF (XBUFFER (w->buffer))))
2310 { 2311 {
2311 int *ptr = FRAME_CURRENT_GLYPHS (f)->charstarts[row]; 2312 int *ptr = FRAME_CURRENT_GLYPHS (f)->charstarts[row];
2312 int i, pos; 2313 int i, pos;
@@ -2358,7 +2359,7 @@ note_mouse_highlight (f, x, y)
2358 2359
2359 /* Put all the overlays we want in a vector in overlay_vec. 2360 /* Put all the overlays we want in a vector in overlay_vec.
2360 Store the length in len. */ 2361 Store the length in len. */
2361 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, 2362 noverlays = overlays_at (pos, 1, &overlay_vec, &len,
2362 NULL, NULL); 2363 NULL, NULL);
2363 noverlays = sort_overlays (overlay_vec, noverlays, w); 2364 noverlays = sort_overlays (overlay_vec, noverlays, w);
2364 2365
@@ -2465,7 +2466,7 @@ fast_find_position (window, pos, columnp, rowp)
2465 int i; 2466 int i;
2466 int row = 0; 2467 int row = 0;
2467 int left = WINDOW_LEFT_MARGIN (w); 2468 int left = WINDOW_LEFT_MARGIN (w);
2468 int top = w->top; 2469 int top = XFASTINT (w->top);
2469 int height = XFASTINT (w->height) - ! MINI_WINDOW_P (w); 2470 int height = XFASTINT (w->height) - ! MINI_WINDOW_P (w);
2470 int width = window_internal_width (w); 2471 int width = window_internal_width (w);
2471 int *charstarts; 2472 int *charstarts;