diff --git a/file.txt b/file.txt new file mode 100644 index 0000000..736f293 --- /dev/null +++ b/file.txt @@ -0,0 +1 @@ +54525955 \ No newline at end of file diff --git a/l b/l new file mode 100644 index 0000000..e69de29 diff --git a/svkbd b/svkbd index 0e1e134..fa2c7a1 100755 Binary files a/svkbd and b/svkbd differ diff --git a/svkbd.c b/svkbd.c index 8ab6166..118d99d 100644 --- a/svkbd.c +++ b/svkbd.c @@ -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")) { diff --git a/svkbd.o b/svkbd.o index d995137..2d1f4bb 100644 Binary files a/svkbd.o and b/svkbd.o differ