From 779cf04f0557baa2f94ab788e0a1c36cd3a613c5 Mon Sep 17 00:00:00 2001 From: oga Date: Wed, 21 May 2008 14:11:19 +0000 Subject: Make menu_filter handle mouse movement too. This enables the keyboard search dialogues to be manipulated with the mouse, too. It also allows me to shrink the codebase further by killing grab_menu(). One known issue with highlighting the first entry in a search dialogue, that'll be fixed soonish. ok okan@, tested by Edd Barrett and todd@. --- xevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index ca3c0d9..32d97e7 100644 --- a/xevents.c +++ b/xevents.c @@ -290,7 +290,7 @@ xev_handle_buttonpress(struct xevent *xev, XEvent *ee) if (TAILQ_EMPTY(&menuq)) goto out; - mi = (struct menu *)grab_menu(e, &menuq); + mi = menu_filter(&menuq, NULL, NULL, 0, NULL, NULL); if (mi == NULL) goto cleanup; -- cgit 1.4.1