fix comment style

This commit is contained in:
Hiltjo Posthuma 2023-02-05 11:25:46 +01:00
parent c247720ae4
commit 3dfb00ccf8
2 changed files with 9 additions and 5 deletions

View File

@ -1,9 +1,13 @@
static const Bool wmborder = True; static const Bool wmborder = True;
static int fontsize = 22; static int fontsize = 22;
static double overlay_delay = 1.0; //in seconds /* overlay delay in seconds */
static double repeat_delay = 0.75; //in seconds, will not work on keys with overlays static double overlay_delay = 1.0;
static int scan_rate = 50; //scan rate in microseconds, affects key repetition rate /* repeat delay in seconds, will not work on keys with overlays */
static int heightfactor = 14; //one row of keys takes up 1/x of the screen height static double repeat_delay = 0.75;
/* scan rate in microseconds, affects key repetition rate */
static int scan_rate = 50;
/* one row of keys takes up 1/x of the screen height */
static int heightfactor = 14;
static int xspacing = 5; static int xspacing = 5;
static int yspacing = 5; static int yspacing = 5;
static const char *defaultfonts[] = { static const char *defaultfonts[] = {

View File

@ -453,7 +453,7 @@ press(Key *k, KeySym buttonmod)
if (enableoverlays && currentoverlay == -1) if (enableoverlays && currentoverlay == -1)
overlayidx = hasoverlay(k->keysym); overlayidx = hasoverlay(k->keysym);
if ((pressonrelease) || (enableoverlays && overlayidx != -1)) { if ((pressonrelease) || (enableoverlays && overlayidx != -1)) {
/*record the begin of the press, don't simulate the actual keypress yet */ /* record the begin of the press, don't simulate the actual keypress yet */
record_press_begin(k->keysym); record_press_begin(k->keysym);
} else { } else {
printdbg("Simulating press: %ld (mod %ld)\n", k->keysym, buttonmod); printdbg("Simulating press: %ld (mod %ld)\n", k->keysym, buttonmod);