aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/term.c19
-rw-r--r--src/xdisp.c16
2 files changed, 9 insertions, 26 deletions
diff --git a/src/term.c b/src/term.c
index 8515edf88a5..24add173245 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3187,12 +3187,9 @@ read_menu_input (struct frame *sf, int *x, int *y, int min_y, int max_y,
3187 { 3187 {
3188 *first_time = false; 3188 *first_time = false;
3189 sf->mouse_moved = 1; 3189 sf->mouse_moved = 1;
3190 return 0;
3191 } 3190 }
3192 3191 else
3193 while (1)
3194 { 3192 {
3195#if 1
3196 extern Lisp_Object read_menu_command (void); 3193 extern Lisp_Object read_menu_command (void);
3197 Lisp_Object cmd; 3194 Lisp_Object cmd;
3198 int usable_input = 1; 3195 int usable_input = 1;
@@ -3247,17 +3244,6 @@ read_menu_input (struct frame *sf, int *x, int *y, int min_y, int max_y,
3247 usable_input = 0; 3244 usable_input = 0;
3248 if (usable_input) 3245 if (usable_input)
3249 sf->mouse_moved = 1; 3246 sf->mouse_moved = 1;
3250#else
3251 int volatile dx = 0;
3252 int volatile dy = 0;
3253 int volatile st = 0;
3254
3255 *x += dx;
3256 *y += dy;
3257 if (dx != 0 || dy != 0)
3258 sf->mouse_moved = 1;
3259 Sleep (300);
3260#endif
3261 return st; 3247 return st;
3262 } 3248 }
3263 return 0; 3249 return 0;
@@ -3356,7 +3342,6 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
3356 leave = 0; 3342 leave = 0;
3357 while (!leave) 3343 while (!leave)
3358 { 3344 {
3359 int mouse_button_count = 3; /* FIXME */
3360 int input_status; 3345 int input_status;
3361 int min_y = state[0].y, max_y = min_y + state[0].menu->count - 1; 3346 int min_y = state[0].y, max_y = min_y + state[0].menu->count - 1;
3362 3347
@@ -3457,8 +3442,6 @@ tty_menu_activate (tty_menu *menu, int *pane, int *selidx,
3457 } 3442 }
3458 3443
3459 sf->mouse_moved = 0; 3444 sf->mouse_moved = 0;
3460 /* FIXME: Since we set the fram's garbaged flag, do we need this
3461 call to screen_update? */
3462 screen_update (sf, state[0].screen_behind); 3445 screen_update (sf, state[0].screen_behind);
3463 while (statecount--) 3446 while (statecount--)
3464 free_saved_screen (state[statecount].screen_behind); 3447 free_saved_screen (state[statecount].screen_behind);
diff --git a/src/xdisp.c b/src/xdisp.c
index ce6cd8f080e..9d7f5fadc78 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20616,9 +20616,9 @@ deep_copy_glyph_row (struct glyph_row *to, struct glyph_row *from)
20616} 20616}
20617 20617
20618/* Display one menu item on a TTY, by overwriting the glyphs in the 20618/* Display one menu item on a TTY, by overwriting the glyphs in the
20619 desired glyph matrix with glyphs produced from the menu item text. 20619 frame F's desired glyph matrix with glyphs produced from the menu
20620 Called from term.c to display TTY drop-down menus one item at a 20620 item text. Called from term.c to display TTY drop-down menus one
20621 time. 20621 item at a time.
20622 20622
20623 ITEM_TEXT is the menu item text as a C string. 20623 ITEM_TEXT is the menu item text as a C string.
20624 20624
@@ -20626,11 +20626,11 @@ deep_copy_glyph_row (struct glyph_row *to, struct glyph_row *from)
20626 could specify one of 3 faces: a face for an enabled item, a face 20626 could specify one of 3 faces: a face for an enabled item, a face
20627 for a disabled item, or a face for a selected item. 20627 for a disabled item, or a face for a selected item.
20628 20628
20629 X and Y are coordinates of the first glyph in the desired matrix to 20629 X and Y are coordinates of the first glyph in the frame's desired
20630 be overwritten by the menu item. Since this is a TTY, Y is the 20630 matrix to be overwritten by the menu item. Since this is a TTY, Y
20631 zero-based number of the glyph row and X is the zero-based glyph 20631 is the zero-based number of the glyph row and X is the zero-based
20632 number in the row, starting from left, where to start displaying 20632 glyph number in the row, starting from left, where to start
20633 the item. 20633 displaying the item.
20634 20634
20635 SUBMENU non-zero means this menu item drops down a submenu, which 20635 SUBMENU non-zero means this menu item drops down a submenu, which
20636 should be indicated by displaying a proper visual cue after the 20636 should be indicated by displaying a proper visual cue after the