On Tue, Feb 17, 2026 at 01:04:44PM +0000, Douglas Silva wrote: > Middle-click emulation for clickpads is activated by simultaneously pressing > at the bottom-left and bottom-right sides of the pad. I often use this to > paste a selection from the terminal onto the browser, where Shift+Insert > doesn't work the same way. > > It works for a while after the session is started. Eventually, the > middle-click emulation stops working; instead, it generates two separate and > simultaneous events: a left click and a right click (opening a context menu, > or nothing at all). >
Hi I guess that this is caused by the default value of the Emulate3Buttons property of the ws(4) driver: it resets the emulation whenever a real button2 event is detected. So if you have another pointing device which sends real button2 events it will revert to no emulation. You can change that behaviour by changing the "WS Pointer Middle Button Emulation" XInput property to '1' instead of the default value '2': xinput set-prop /dev/wsmouse "WS Pointer Middle Button Emulation" 1 (in a terminal or in ypur .xsession) With this setting a real button2 event will not reset the emulation mode anymore. -- Matthieu Herrb
