fixed offsets, updated eprint, cleaned up

This commit is contained in:
Connor Lane Smith
2010-06-24 14:22:34 +01:00
parent 6efe1932be
commit 6c1d0e4d60
4 changed files with 42 additions and 33 deletions

View File

@ -164,7 +164,7 @@ kpress(XKeyEvent * e) {
FILE *fp;
char *s;
if(!(fp = popen("sselp", "r")))
eprint("dinput: cannot popen sselp\n");
eprint("cannot popen sselp\n");
s = fgets(buf, sizeof buf, fp);
pclose(fp);
if(s == NULL)
@ -322,6 +322,7 @@ main(int argc, char *argv[]) {
Bool topbar = True;
/* command line args */
progname = argv[0];
for(i = 1; i < argc; i++)
if(!strcmp(argv[i], "-b"))
topbar = False;
@ -356,7 +357,7 @@ main(int argc, char *argv[]) {
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
fprintf(stderr, "dinput: warning: no locale support\n");
if(!(dpy = XOpenDisplay(NULL)))
eprint("dinput: cannot open display\n");
eprint("cannot open display\n");
screen = DefaultScreen(dpy);
if(!parent)
parent = RootWindow(dpy, screen);