Remove tests for menu bounds in 9menu.c, since the mouse is confined to the menu.

This commit is contained in:
Kris Maglione 2007-02-26 05:51:49 -05:00
parent 16af6d5871
commit 3f2591f833

View File

@ -569,10 +569,10 @@ run_menu()
case MotionNotify:
old = cur;
cur = ev.xbutton.y/high;
if (ev.xbutton.x < 0 || ev.xbutton.x > wide)
cur = -1;
else if (cur < 0 || cur >= numitems)
cur = -1;
if (cur < 0)
cur = 0;
else if (cur >= numitems)
cur = numitems - 1;
if (cur == old)
break;
redraw(cur, high, wide);