xruler

a screen ruler for X11
Log | Files | Refs | LICENSE

commit 0a8f9d226644328630857e268fe27a4836c3578c
parent cf16f3859d490ceb17724aea244f06586989d1e7
Author: Matthias Balk <mbalk@mbalk.de>
Date:   Fri,  8 Nov 2019 08:38:49 +0100

Bugfix: print negative coordinates and reset overflow

Diffstat:
Mxruler.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xruler.c b/xruler.c @@ -230,7 +230,7 @@ int main(int argc, char** argv) { xcb_motion_notify_event_t* motion = (xcb_motion_notify_event_t*) event; char buf[16]; - snprintf(buf, 16, "%04u,%04u", motion->event_x, motion->event_y); + snprintf(buf, 16, "%04d,%04d ", motion->event_x, motion->event_y); draw_text(connection, screen, window, 5, height - 5, buf); break; }