I’m having a similar problem on sway. After a month of not upgrading, I upgraded my system today and rebooted. When I open Firefox or Chromium and hover over the URL bar, the mouse cursor blinks (switches for a really short amount of time from the text cursor (that looks like an I) to the normal (triangle) cursor and then back). And sometimes when I click on a link, it isn’t registered. Or when I slowly select some text by dragging, it stops somewhere in the middle.
I already tried to use another mouse, but same problem. When I replug the mouse into the computer, dmesg doesn’t show any errors, just the usual stuff.
sway, libinput, elogind, wayland, wayland-protocols, libxcb and wlroots didn’t get updated. linux and udev did.
Edit: And I also unplugged the mouse, but the blinking still appeared.
Edit 2: Another thing I noticed is that when I switch the workspaces in sway with either keyboard or mouse, somtimes it quickly goes to the old workspace again. But typing text works fine. (So perhaps some weird behaviour in sway that is caused from the mouse inconstistencies?)
Edit 3: No mouse events come up with `sudo libinput debug-events` and hovering over the URL bar.
Edit 4: Using a program called wev, I found out that these events are getting sent:
[13: wl_pointer] enter: serial: 23325; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23327; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23329; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23331; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23333; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23335; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23337; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23339; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23341; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
[13: wl_pointer] leave: surface: 3
[13: wl_pointer] frame
[13: wl_pointer] enter: serial: 23343; surface: 3, x, y: 206.371094, 291.015625
[13: wl_pointer] frame
Edit 5: Downgrading linux did not fix the problem.
Edit 6: I haven’t been able to reproduce this issue on sway with a fresh artix-plasma-s6-20230320-x86_64.iso.
Edit 7: Unplugging the keyboard doesn’t help either.
Edit 8: `udevadm monitor --kernel --property --subsystem-match=usb` doesn’t show the mouse or keyboard getting removed and readded or sth like that
Edit 9: i3 works fine. so it seems like it is wayland, wlroots or sway specific, I guess
Edit 10: hyprland seems to work as well, so I guess it’s down to wlroots or sway