cleaned up

This commit is contained in:
Connor Lane Smith 2010-06-25 04:33:41 +01:00
parent 4508fd2c4e
commit 9f3b0c6ea8
2 changed files with 10 additions and 9 deletions

View File

@ -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;

View File

@ -273,6 +273,7 @@ kpress(XKeyEvent * e) {
ksym = XK_Tab;
break;
case XK_j:
case XK_m:
ksym = XK_Return;
break;
case XK_n:
@ -501,7 +502,7 @@ setup(Bool topbar) {
/* menu window */
wa.override_redirect = True;
wa.background_pixmap = ParentRelative;
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask | VisibilityChangeMask;
wa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
/* menu window geometry */
mh = (dc.font.height + 2) * (lines + 1);