Skip to content

Instantly share code, notes, and snippets.

@deltaluca
Created July 10, 2015 21:12
Show Gist options
  • Save deltaluca/a9d93f15ce5397bd2a53 to your computer and use it in GitHub Desktop.
Save deltaluca/a9d93f15ce5397bd2a53 to your computer and use it in GitHub Desktop.
Silly X11.
# move mouse 1 pixel (no buttons/keys pressed)
MotionNotify event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37828593, (89,92), root:(92,213),
state 0x10, is_hint 0, same_screen YES
# press left mouse
ButtonPress event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37830561, (89,92), root:(92,213),
state 0x10, button 1, same_screen YES
# drag 1 pixel
MotionNotify event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37832561, (89,91), root:(92,212),
state 0x110, is_hint 0, same_screen YES
# let go of left mouse
ButtonRelease event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37834561, (89,91), root:(92,212),
state 0x110, button 1, same_screen YES
# press alt
KeyPress event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37835585, (89,91), root:(92,212),
state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
# press left mouse
LeaveNotify event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37836946, (89,91), root:(92,212),
mode NotifyGrab, detail NotifyAncestor, same_screen YES,
focus YES, state 280
FocusOut event, serial 37, synthetic NO, window 0x4a00001,
mode NotifyGrab, detail NotifyAncestor
# drag mouse 1 pixel
ConfigureNotify event, serial 37, synthetic YES, window 0x4a00001,
event 0x4a00001, window 0x4a00001, (1,119), width 178, height 178,
border_width 2, above 0x0, override NO
# let go out left mouse
EnterNotify event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37844400, (89,91), root:(93,212),
mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
focus YES, state 24
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967187 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x4a00001,
mode NotifyUngrab, detail NotifyPointer
FocusIn event, serial 37, synthetic NO, window 0x4a00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
# let go of alt
KeyRelease event, serial 37, synthetic NO, window 0x4a00001,
root 0x293, subw 0x0, time 37845208, (89,91), root:(93,212),
state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment