added trailing \n to event

This commit is contained in:
Anselm R. Garbe 2006-01-29 22:08:14 +02:00
parent 2a5db27931
commit 06f4d727e6
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ update_geometry()
pmap = XCreatePixmap(dpy, win, brect.width, brect.height,
DefaultDepth(dpy, screen_num));
XSync(dpy, False);
snprintf(buf, sizeof(buf), "NewGeometry %d %d %d %d", brect.x, brect.y, brect.width, brect.height);
snprintf(buf, sizeof(buf), "NewGeometry %d %d %d %d\n", brect.x, brect.y, brect.width, brect.height);
do_pend_fcall(buf);
draw();
}
@ -227,7 +227,7 @@ handle_buttonpress(XButtonPressedEvent * e)
char buf[32];
for(i = 0; i < nitem; i++)
if(blitz_ispointinrect(e->x, e->y, &item[i]->rect)) {
snprintf(buf, sizeof(buf), "Button%dPress %d", e->button, i);
snprintf(buf, sizeof(buf), "Button%dPress %d\n", e->button, i);
do_pend_fcall(buf);
}
}