mirror of
https://github.com/0intro/wmii
synced 2025-02-12 20:34:39 +03:00
Remove tests for menu bounds in 9menu.c, since the mouse is confined to the menu.
This commit is contained in:
parent
16af6d5871
commit
3f2591f833
8
9menu.c
8
9menu.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user