aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-10-08 17:37:20 +0300
committerEli Zaretskii2013-10-08 17:37:20 +0300
commitafd8eb2cb062e63135812775e7377bc968ac28ee (patch)
treefb3b12f18859f52d48d388f1d1f497da9c2fe427 /src/term.c
parent4a48e94d50bad36ed872725db8d8cddbac5a9f47 (diff)
downloademacs-afd8eb2cb062e63135812775e7377bc968ac28ee.tar.gz
emacs-afd8eb2cb062e63135812775e7377bc968ac28ee.zip
Cleanups and commentary changes.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c19
1 files changed, 1 insertions, 18 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);