about summary refs log tree commit diff
path: root/dinput.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-06-25 04:33:41 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-06-25 04:33:41 +0100
commit9f3b0c6ea843340b87a045ea0afd2d1b33425eee (patch)
tree0ee0fc482aa4cb4c2d06bc85dd04cc7d69fdbfad /dinput.c
parentmoved draw.c to libdraw.a (diff)
downloaddmenu-9f3b0c6ea843340b87a045ea0afd2d1b33425eee.tar.gz
dmenu-9f3b0c6ea843340b87a045ea0afd2d1b33425eee.tar.bz2
dmenu-9f3b0c6ea843340b87a045ea0afd2d1b33425eee.zip
cleaned up
Diffstat (limited to 'dinput.c')
-rw-r--r--dinput.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dinput.c b/dinput.c
index 283b018..228780c 100644
--- a/dinput.c
+++ b/dinput.c
@@ -25,7 +25,7 @@ static void cleanup(void);
 static void drawcursor(void);
 static void drawinput(void);
 static Bool grabkeyboard(void);
-static void kpress(XKeyEvent * e);
+static void kpress(XKeyEvent *e);
 static void run(void);
 static void setup(Bool topbar);
 
@@ -100,7 +100,7 @@ grabkeyboard(void) {
 }
 
 void
-kpress(XKeyEvent * e) {
+kpress(XKeyEvent *e) {
 	char buf[sizeof text];
 	int num;
 	unsigned int i, len;
@@ -140,6 +140,7 @@ kpress(XKeyEvent * e) {
 			ksym = XK_BackSpace;
 			break;
 		case XK_j:
+		case XK_m:
 			ksym = XK_Return;
 			break;
 		case XK_k:
@@ -274,12 +275,11 @@ setup(Bool topbar) {
 	selcol[ColBG] = getcolor(&dc, selbgcolor);
 	selcol[ColFG] = getcolor(&dc, selfgcolor);
 	initfont(&dc, font);
-	fprintf(stderr, "dc.font.xfont: %u\n", (size_t)dc.font.xfont);
 
 	/* input window */
 	wa.override_redirect = True;
 	wa.background_pixmap = ParentRelative;
-	wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask | VisibilityChangeMask;
+	wa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
 
 	/* input window geometry */
 	mh = dc.font.height + 2;