summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authoroga <oga>2008-05-21 14:11:19 +0000
committeroga <oga>2008-05-21 14:11:19 +0000
commit779cf04f0557baa2f94ab788e0a1c36cd3a613c5 (patch)
tree6f2ddece2052ee53f72065e48457a90ace015602 /xevents.c
parent1e46ba72f706d7ab2b0f7a6a14054b908348d10e (diff)
downloadcwm-779cf04f0557baa2f94ab788e0a1c36cd3a613c5.tar.gz
cwm-779cf04f0557baa2f94ab788e0a1c36cd3a613c5.tar.xz
cwm-779cf04f0557baa2f94ab788e0a1c36cd3a613c5.zip
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@.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c2
1 files changed, 1 insertions, 1 deletions
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;