static unsigned int textw_clamp(const char *str, unsigned int n); static void motionevent(XButtonEvent *ev); static void buttonpress(XEvent *e);