From 70508fca2af57f5b3b025a45f7b5a6a66e31d4cb 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@. --- group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'group.c') diff --git a/group.c b/group.c index 294d7f7..1be7cd1 100644 --- a/group.c +++ b/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: group.c,v 1.16 2008/05/19 17:13:55 oga Exp $ + * $Id: group.c,v 1.17 2008/05/21 14:11:19 oga Exp $ */ #include "headers.h" @@ -273,7 +273,7 @@ group_menu(XButtonEvent *e) if (TAILQ_EMPTY(&menuq)) return; - mi = (struct menu *)grab_menu(e, &menuq); + mi = menu_filter(&menuq, NULL, NULL, 0, NULL, NULL); if (mi == NULL || mi->ctx == NULL) goto cleanup; -- cgit v1.2.3-2-gb3c3