[PLUG] Trackball middle button pastes string twice

Rich Shepard rshepard at appl-ecosys.com
Mon Jun 5 18:50:00 UTC 2017


On Mon, 5 Jun 2017, Ali Corbin wrote:

> I'd start with xev, to see exactly what the trackball is sending.

   Invoked xev.

   Moved cursor into the square in the upper left of the window.

   Pressed both small buttons (== middle button click):

KeymapNotify event, serial 36, synthetic NO, window 0x0,
     keys:  4294967231 0   0   0   0   0   0   0   0   0   0   0   0   0   0
0
            0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

ButtonRelease event, serial 36, synthetic NO, window 0x1a00001,
     root 0x2bf, subw 0x1a00002, time 3810297086, (40,41), root:(751,413),
     state 0x200, button 2, same_screen YES

LeaveNotify event, serial 36, synthetic NO, window 0x1a00001,
     root 0x2bf, subw 0x0, time 3810297086, (40,41), root:(751,413),
     mode NotifyUngrab, detail NotifyInferior, same_screen YES,
     focus YES, state 0

   Sometimes the events following the KeymapNotify event are a pair of
MotionNotify events. There is one ButtonRelease event for pressing the two
buttons simultaneously. Also, sometimes (not in xev mode) only one copy of
the string is pasted, but too often there are two with the second appended
to the end of the first copy.

Rich




More information about the PLUG mailing list