strncat(text, buf, sizeof(text));
else
strncpy(text, buf, sizeof(text));
strncat(text, buf, sizeof(text));
else
strncpy(text, buf, sizeof(text));
screen = DefaultScreen(dpy);
root = RootWindow(dpy, screen);
screen = DefaultScreen(dpy);
root = RootWindow(dpy, screen);
/* grab as early as possible, but after reading all items!!! */
while(XGrabKeyboard(dpy, root, True, GrabModeAsync,
/* grab as early as possible, but after reading all items!!! */
while(XGrabKeyboard(dpy, root, True, GrabModeAsync,