aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authoroga2008-05-21 14:11:19 +0000
committeroga2008-05-21 14:11:19 +0000
commit70508fca2af57f5b3b025a45f7b5a6a66e31d4cb (patch)
tree2f68ba9395dbae3a11e6d2401bc09b62e09783ad /xevents.c
parentc4a8f44931713f32f250264ca00520aae30fc0e3 (diff)
downloadcwm-70508fca2af57f5b3b025a45f7b5a6a66e31d4cb.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xevents.c b/xevents.c
index c0e53d0..5721543 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: xevents.c,v 1.15 2008/05/19 12:56:58 okan Exp $
+ * $Id: xevents.c,v 1.16 2008/05/21 14:11:19 oga Exp $
*/
/*
@@ -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;