summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-05-21 14:11:20 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-05-21 14:11:20 +0000
commit913928db385e6d08f0141674758a36e9f4978c33 (patch)
tree40e08422b237763329fa35ca4be3cc341b0dbe1a /app/cwm/calmwm.h
parent0552425b23ee3a2ddd3452e9e2f5ffc97bfadd0d (diff)
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 'app/cwm/calmwm.h')
-rw-r--r--app/cwm/calmwm.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index 3c9cb3ccc..5a2af4a35 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/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 *);