Date: Thu, 2 Jul 2015 14:38:41 -0700 (PDT) From: Don Lewis <truckman@FreeBSD.org> To: freebsd-x11@FreeBSD.org Subject: middle-button paste strangeness Message-ID: <201507022138.t62LcfoQ077035@gw.catspoiler.org>
next in thread | raw e-mail | index | archive | help
I've recently run into a problem when doing middle button text paste operations in X11. If I select some text and then paste it into a window using the middle mouse button, the text is pasted into the window, but then I get repeating characters after the pasted text. The characters are almost always "=", but every once in a while, I'll get repeating "d" characters instead. Occasionally I'll get one of these extra characters before the pasted text. The characters get continually repeated indefinitely until I press a key on the keyboard. The repeat rate seems to be the same as the keyboard repeat rate, almost as if I was holding down the "=" key. I'm using a USB mouse via moused, which Xorg detects as /dev/sysmouse. I don't see this problem with pasting text in console mode, only in X. I also don't see the problem if I copy and paste using the right-click menu. The problem started a few weeks ago and I was hoping that a reboot would fix it, but I had to reboot the machine yesterday and the problem is still present. The machine is running a recent version of 8.4-STABLE and I last updated my installed ports yesterday, with no change in behaviour. I'm currently using the MATE desktop. Keyboard and mouse info from Xorg.log: [ 33.335] (II) config/devd: adding input device (null) (/dev/kbdmux) [ 33.335] (II) LoadModule: "kbd" [ 33.359] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so [ 33.373] (II) Module kbd: vendor="X.Org Foundation" [ 33.373] compiled for 1.14.7, module version = 1.8.0 [ 33.373] Module class: X.Org XInput Driver [ 33.373] ABI class: X.Org XInput driver, version 19.1 [ 33.373] (II) Using input driver 'kbd' for 'kbdmux' [ 33.373] (**) kbdmux: always reports core events [ 33.373] (**) kbdmux: always reports core events [ 33.373] (**) Option "Protocol" "standard" [ 33.373] (**) Option "XkbRules" "base" [ 33.373] (**) Option "XkbModel" "pc105" [ 33.373] (**) Option "XkbLayout" "us" [ 33.373] (**) Option "config_info" "devd:kbdmux" [ 33.373] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6) [ 33.394] (II) config/devd: kbdmux is enabled, ignoring device atkbd0 [ 33.394] (II) config/devd: adding input device (null) (/dev/sysmouse) [ 33.394] (II) LoadModule: "mouse" [ 33.395] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so [ 33.426] (II) Module mouse: vendor="X.Org Foundation" [ 33.426] compiled for 1.14.7, module version = 1.9.1 [ 33.426] Module class: X.Org XInput Driver [ 33.426] ABI class: X.Org XInput driver, version 19.1 [ 33.426] (II) Using input driver 'mouse' for 'sysmouse' [ 33.426] (**) sysmouse: always reports core events [ 33.426] (**) Option "Device" "/dev/sysmouse" [ 33.426] (==) sysmouse: Protocol: "Auto" [ 33.426] (**) sysmouse: always reports core events [ 33.427] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50 [ 33.427] (**) sysmouse: ZAxisMapping: buttons 4 and 5 [ 33.427] (**) sysmouse: Buttons: 5 [ 33.427] (**) Option "config_info" "devd:sysmouse" [ 33.427] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7) [ 33.427] (**) sysmouse: (accel) keeping acceleration scheme 1 [ 33.427] (**) sysmouse: (accel) acceleration profile 0 [ 33.427] (**) sysmouse: (accel) acceleration factor: 2.000 [ 33.427] (**) sysmouse: (accel) acceleration threshold: 4 [ 33.427] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0 [ 33.427] (II) sysmouse: SetupAuto: protocol is SysMouse [ 33.427] (II) config/devd: device /dev/ums0 already opened This is what I see if I paste some text into Xev: Outer window is 0x3e00001, inner window is 0x3e00002 PropertyNotify event, serial 8, synthetic NO, window 0x3e00001, atom 0x27 (WM_NAME), time 97584625, state PropertyNewValue PropertyNotify event, serial 9, synthetic NO, window 0x3e00001, atom 0x22 (WM_COMMAND), time 97584625, state PropertyNewValue PropertyNotify event, serial 10, synthetic NO, window 0x3e00001, atom 0x28 (WM_NORMAL_HINTS), time 97584625, state PropertyNewValue CreateNotify event, serial 11, synthetic NO, window 0x3e00001, parent 0x3e00001, window 0x3e00002, (10,10), width 50, height 50 border_width 4, override NO PropertyNotify event, serial 14, synthetic NO, window 0x3e00001, atom 0x10f (WM_PROTOCOLS), time 97584625, state PropertyNewValue MapNotify event, serial 15, synthetic NO, window 0x3e00001, event 0x3e00001, window 0x3e00002, override NO ConfigureNotify event, serial 18, synthetic NO, window 0x3e00001, event 0x3e00001, window 0x3e00001, (0,0), width 178, height 178, border_width 0, above 0x2e0008b, override NO PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x162 (_NET_WM_ALLOWED_ACTIONS), time 97584626, state PropertyNewValue PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x162 (_NET_WM_ALLOWED_ACTIONS), time 97584626, state PropertyNewValue ReparentNotify event, serial 18, synthetic NO, window 0x3e00001, event 0x3e00001, window 0x3e00001, parent 0x102cf36, (0,0), override NO PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x117 (_NET_WM_DESKTOP), time 97584627, state PropertyNewValue PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x117 (_NET_WM_DESKTOP), time 97584627, state PropertyNewValue PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x114 (_NET_FRAME_EXTENTS), time 97584629, state PropertyNewValue ConfigureNotify event, serial 18, synthetic NO, window 0x3e00001, event 0x3e00001, window 0x3e00001, (1,28), width 178, height 178, border_width 0, above 0x0, override NO PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x136 (WM_STATE), time 97584629, state PropertyNewValue PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x11d (_NET_WM_STATE), time 97584629, state PropertyNewValue PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x189 (XKLAVIER_STATE), time 97584631, state PropertyNewValue ConfigureNotify event, serial 18, synthetic YES, window 0x3e00001, event 0x3e00001, window 0x3e00001, (-1,692), width 178, height 178, border_width 2, above 0x0, override NO MapNotify event, serial 18, synthetic NO, window 0x3e00001, event 0x3e00001, window 0x3e00001, override NO VisibilityNotify event, serial 18, synthetic NO, window 0x3e00001, state VisibilityUnobscured Expose event, serial 18, synthetic NO, window 0x3e00001, (0,0), width 178, height 10, count 3 Expose event, serial 18, synthetic NO, window 0x3e00001, (0,10), width 10, height 58, count 2 Expose event, serial 18, synthetic NO, window 0x3e00001, (68,10), width 110, height 58, count 1 Expose event, serial 18, synthetic NO, window 0x3e00001, (0,68), width 178, height 110, count 0 PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x11d (_NET_WM_STATE), time 97584633, state PropertyNewValue FocusIn event, serial 18, synthetic NO, window 0x3e00001, mode NotifyNormal, detail NotifyNonlinear KeymapNotify event, serial 18, synthetic NO, window 0x0, keys: 0 0 32 0 16 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 PropertyNotify event, serial 18, synthetic NO, window 0x3e00001, atom 0x11d (_NET_WM_STATE), time 97584633, state PropertyNewValue KeyRelease event, serial 34, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97584678, (2127,482), root:(2128,1176), state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES, " XLookupString gives 1 bytes: (0d) " XFilterEvent returns: False PropertyNotify event, serial 37, synthetic NO, window 0x3e00001, atom 0x158 (_NET_WM_ICON_GEOMETRY), time 97584701, state PropertyNewValue FocusOut event, serial 38, synthetic NO, window 0x3e00001, mode NotifyNormal, detail NotifyNonlinear FocusIn event, serial 38, synthetic NO, window 0x3e00001, mode NotifyNormal, detail NotifyNonlinear KeymapNotify event, serial 38, synthetic NO, window 0x0, keys: 0 0 32 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 EnterNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592035, (113,0), root:(114,694), mode NotifyNormal, detail NotifyAncestor, same_screen YES, focus YES, state 0 KeymapNotify event, serial 38, synthetic NO, window 0x0, keys: 0 0 32 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 MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592281, (113,0), root:(114,694), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592287, (113,1), root:(114,695), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592295, (112,3), root:(113,697), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592303, (112,6), root:(113,700), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592311, (112,7), root:(113,701), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592319, (112,9), root:(113,703), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592336, (112,10), root:(113,704), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592336, (111,10), root:(112,704), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592343, (111,11), root:(112,705), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592351, (110,12), root:(111,706), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592359, (110,13), root:(111,707), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592365, (109,17), root:(110,711), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592373, (107,18), root:(108,712), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592386, (107,21), root:(108,715), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592389, (105,25), root:(106,719), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592397, (105,30), root:(106,724), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592405, (103,33), root:(104,727), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592421, (103,35), root:(104,729), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97592437, (103,36), root:(104,730), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97594918, (102,36), root:(103,730), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97594980, (102,35), root:(103,729), state 0x0, is_hint 0, same_screen YES ButtonPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97595794, (102,35), root:(103,729), state 0x0, button 2, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97595958, (102,34), root:(103,728), state 0x200, is_hint 0, same_screen YES ButtonRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97595964, (102,34), root:(103,728), state 0x200, button 2, same_screen YES KeyRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596295, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596295, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XmbLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596328, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596328, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XmbLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596361, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596361, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XmbLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596395, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596395, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XmbLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596429, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596429, (102,34), root:(103,728), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XmbLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596450, (102,32), root:(103,726), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596456, (102,30), root:(103,724), state 0x0, is_hint 0, same_screen YES KeyRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596463, (102,30), root:(103,724), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596463, (102,30), root:(103,724), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XmbLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596464, (102,26), root:(103,720), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596472, (102,20), root:(103,714), state 0x0, is_hint 0, same_screen YES MotionNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596480, (102,11), root:(103,705), state 0x0, is_hint 0, same_screen YES LeaveNotify event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596482, (107,-2), root:(108,692), mode NotifyNormal, detail NotifyAncestor, same_screen YES, focus YES, state 0 KeyRelease event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596496, (112,-16), root:(113,678), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x3e00001, root 0x260, subw 0x0, time 97596496, (112,-16), root:(113,678), state 0x0, keycode 21 (keysym 0x3d, equal), same_screen YES, XLookupString gives 1 bytes: (3d) "=" XmbLookupString gives 1 bytes: (3d) "=" XFilterEvent returns: False FocusOut event, serial 38, synthetic NO, window 0x3e00001, mode NotifyNormal, detail NotifyNonlinear
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507022138.t62LcfoQ077035>