summary refs log tree commit diff
path: root/calmwm.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 /calmwm.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 'calmwm.c')
-rw-r--r--calmwm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/calmwm.c b/calmwm.c
index db055c0..c00e46a 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -202,10 +202,6 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
 	    GCForeground|GCBackground|GCFunction|
 	    GCLineWidth|GCSubwindowMode, &gv);
 
-	sc->hlgc = XCreateGC(X_Dpy, sc->rootwin,
-	    GCForeground|GCBackground|GCFunction|
-	    GCLineWidth|GCSubwindowMode, &gv);
-
 	font_init(sc);
 	DefaultFont = font_getx(sc, Conf.DefaultFontName);
 	sc->fontheight = font_ascent(DefaultFont) +
@@ -218,7 +214,7 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
 	TAILQ_INIT(&sc->mruq);
 
 	/* Initialize menu window. */
-	grab_menuinit(sc);
+	menu_init(sc);
 
 	/* Deal with existing clients. */
 	XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins);