|
|
@ -140,6 +140,7 @@ kpress(XKeyEvent * e) { |
|
|
|
ksym = XK_BackSpace; |
|
|
|
ksym = XK_BackSpace; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case XK_j: |
|
|
|
case XK_j: |
|
|
|
|
|
|
|
case XK_m: |
|
|
|
ksym = XK_Return; |
|
|
|
ksym = XK_Return; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case XK_k: |
|
|
|
case XK_k: |
|
|
@ -274,12 +275,11 @@ setup(Bool topbar) { |
|
|
|
selcol[ColBG] = getcolor(&dc, selbgcolor); |
|
|
|
selcol[ColBG] = getcolor(&dc, selbgcolor); |
|
|
|
selcol[ColFG] = getcolor(&dc, selfgcolor); |
|
|
|
selcol[ColFG] = getcolor(&dc, selfgcolor); |
|
|
|
initfont(&dc, font); |
|
|
|
initfont(&dc, font); |
|
|
|
fprintf(stderr, "dc.font.xfont: %u\n", (size_t)dc.font.xfont); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* input window */ |
|
|
|
/* input window */ |
|
|
|
wa.override_redirect = True; |
|
|
|
wa.override_redirect = True; |
|
|
|
wa.background_pixmap = ParentRelative; |
|
|
|
wa.background_pixmap = ParentRelative; |
|
|
|
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask | VisibilityChangeMask; |
|
|
|
wa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; |
|
|
|
|
|
|
|
|
|
|
|
/* input window geometry */ |
|
|
|
/* input window geometry */ |
|
|
|
mh = dc.font.height + 2; |
|
|
|
mh = dc.font.height + 2; |
|
|
|