2
#include <X11/keysym.h>
9
int md_grabkey(int keycode, unsigned int modifiers)
13
pkt[0]=keycode; pkt[1]=modifiers;
14
if(md_command(None, MCMD_ADD_KEYGRAB, pkt, sizeof(pkt), &ptr)>=sizeof(int))
20
int md_ungrabkey(int id)
22
return md_command0(None, MCMD_DEL_KEYGRAB, &id, sizeof(id));