summaryrefslogtreecommitdiff
path: root/dinput.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-06-24 14:22:34 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-06-24 14:22:34 +0100
commit6c1d0e4d60b239e9533def6feaf8eb2138858c3e (patch)
tree710f1366ba2cbb4bce0cf2cc0ac7d6bdd0ddfdf0 /dinput.c
parent6efe1932be9425896c34f54501a6194286dd0503 (diff)
fixed offsets, updated eprint, cleaned up
Diffstat (limited to 'dinput.c')
-rw-r--r--dinput.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dinput.c b/dinput.c
index d8f2515..15f5e26 100644
--- a/dinput.c
+++ b/dinput.c
@@ -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);