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@. --- calmwm.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 3c9cb3c..5a2af4a 100644 --- a/calmwm.h +++ b/calmwm.h @@ -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: calmwm.h,v 1.49 2008/05/20 14:50:51 oga Exp $ + * $Id: calmwm.h,v 1.50 2008/05/21 14:11:19 oga Exp $ */ #ifndef _CALMWM_H_ @@ -65,7 +65,7 @@ struct screen_ctx { whitecolor, blackcolor; char *display; unsigned long blackpixl, whitepixl, redpixl, bluepixl, cyanpixl; - GC gc, hlgc; + GC gc; Pixmap gray, blue, red; @@ -356,6 +356,7 @@ void client_do_shape(struct client_ctx *); struct menu *menu_filter(struct menu_q *, char *, char *, int, void (*)(struct menu_q *, struct menu_q *, char *), void (*)(struct menu *, int)); +void menu_init(struct screen_ctx *); void xev_handle_maprequest(struct xevent *, XEvent *); void xev_handle_unmapnotify(struct xevent *, XEvent *); @@ -405,8 +406,6 @@ void u_exec(char *); void grab_sweep(struct client_ctx *); void grab_drag(struct client_ctx *); -void grab_menuinit(struct screen_ctx *); -void *grab_menu(XButtonEvent *, struct menu_q *); void grab_label(struct client_ctx *); void xfree(void *); -- cgit v1.2.3-2-gb3c3