wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 06f4d727e656f5037bd647425788b495e417c578
parent 2a5db279313aa2dad63f420a20a121933ae098f9
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Sun, 29 Jan 2006 22:08:14 +0200

added trailing \n to event 


Diffstat:
cmd/wmiibar2.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/wmiibar2.c b/cmd/wmiibar2.c @@ -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); } }