summary refs log tree commit diff
path: root/calmwm.h
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 /calmwm.h
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 'calmwm.h')
-rw-r--r--calmwm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/calmwm.h b/calmwm.h
index e1a5b0e..96271e5 100644
--- a/calmwm.h
+++ b/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 *);