return tv.tv_sec*1000000 + tv.tv_usec;
}
-void main()
+int main()
{
int e;
XEvent ev;
XTestFakeButtonEvent(dpy, 1, ev.type == KeyPress, 0);
else if (!strcmp(keystr, "o"))
XTestFakeButtonEvent(dpy, 3, ev.type == KeyPress, 0);
+ else if (!strcmp(keystr, "p"))
+ XTestFakeButtonEvent(dpy, 2, ev.type == KeyPress, 0);
else if (!strcmp(keystr, "apostrophe") || !strcmp(keystr, "semicolon")) {
if (ev.type == KeyPress)
status |= STATUS_TAPJUMP;
XTestFakeRelativeMotionEvent(dpy, 0, 2, 0);
}
-
exit(0);
-}
\ No newline at end of file
+}