This commit is contained in:
zcake 2021-02-09 14:00:39 +08:00
parent 1bc25701b4
commit bb6b5bd74d
5 changed files with 16 additions and 0 deletions

1
file.txt Normal file
View File

@ -0,0 +1 @@
54525955

0
l Normal file
View File

BIN
svkbd

Binary file not shown.

15
svkbd.c
View File

@ -105,6 +105,8 @@ static int releaseprotect = 0; /* set to 1 after overlay is shown, protecting ag
static int tmp_keycode = 1;
static int rows = 0, ww = 0, wh = 0, wx = 0, wy = 0;
static char *name = "svkbd";
static char file ;
static int report;
static int debug = 0;
static int numlayers = 0;
static int numkeys = 0;
@ -722,7 +724,18 @@ setup(void)
32, PropModeReplace,
(unsigned char *)&atype, 1);
}
if (report) {
system("rm /tmp/svkbdid");
system("touch /tmp/svkbdid");
FILE *fp;
char winid[256];
sprintf(winid,"%lu", win);
fp = fopen("/tmp/svkbdid", "w+");
fputs(winid, fp);
fclose(fp);
}
XMapRaised(dpy, win);
drw_resize(drw, ww, wh);
updatekeys();
@ -954,6 +967,8 @@ main(int argc, char *argv[])
if (bitm & YNegative && wy == 0)
wy = -1;
i++;
} else if (!strcmp(argv[i], "-w")) {
report=1;
} else if (!strcmp(argv[i], "-fn")) { /* font or font set */
fonts[0] = argv[++i];
} else if (!strcmp(argv[i], "-D")) {

BIN
svkbd.o

Binary file not shown.