Commit Diff


commit - 7643b2635cb8f0688144ecf8e5b57b605258b6a7
commit + df03d60c047a3010f800b26883763764be8d5744
blob - 0951903057acfdbd970f2cefca9eb9a1fb43e3bc
blob + 38e1bf839e53f9a8af12f5166b36723128cc3d18
--- src/cmd/rio/key.c
+++ src/cmd/rio/key.c
@@ -46,6 +46,7 @@ keypress(XKeyEvent *e)
 	/*
 	 * process key press here
 	 */
+	if(0)
 	if(e->keycode == tabcode)
 		alttab(e->state&ShiftMask);
 	XAllowEvents(dpy, SyncKeyboard, e->time);
blob - 71f85fbc946fb7c8db13ebfd8a4ff49a7bb173b1
blob + bc43a99fff092051435a9cea16842d73b5f6b65f
--- src/cmd/rio/main.c
+++ src/cmd/rio/main.c
@@ -335,7 +335,8 @@ initscreen(ScreenInfo *s, int i, int background)
 	attr.cursor = s->arrow;
 	attr.event_mask = SubstructureRedirectMask
 		| SubstructureNotifyMask | ColormapChangeMask
-		| ButtonPressMask | ButtonReleaseMask | PropertyChangeMask;
+		| ButtonPressMask | ButtonReleaseMask | PropertyChangeMask |
+		KeyPressMask;
 	mask = CWCursor|CWEventMask;
 	XChangeWindowAttributes(dpy, s->root, mask, &attr);
 	XSync(dpy, False);
blob - 86c23e8facaa22205e5994d6fd673ed73161630b
blob + c453ef585afee6098ef962bc56492c2effe5e7b3
--- src/cmd/rio/manage.c
+++ src/cmd/rio/manage.c
@@ -26,7 +26,7 @@ manage(Client *c, int mapped)
 	XSetWindowAttributes attrs;
 
 	trace("manage", c, 0);
-	XSelectInput(dpy, c->window, ColormapChangeMask | EnterWindowMask | PropertyChangeMask | FocusChangeMask);
+	XSelectInput(dpy, c->window, ColormapChangeMask | EnterWindowMask | PropertyChangeMask | FocusChangeMask | KeyPressMask);
 
 	/* Get loads of hints */
 
@@ -138,7 +138,7 @@ manage(Client *c, int mapped)
 			CWBackPixel | CWBorderPixel | CWColormap,
 			&attrs);
 
-	XSelectInput(dpy, c->parent, SubstructureRedirectMask | SubstructureNotifyMask|ButtonPressMask| PointerMotionMask|LeaveWindowMask);
+	XSelectInput(dpy, c->parent, SubstructureRedirectMask | SubstructureNotifyMask|ButtonPressMask| PointerMotionMask|LeaveWindowMask|KeyPressMask);
 	if(mapped)
 		c->reparenting = 1;
 	if(doreshape && !fixsize)