I ended up advising some dap-mode and/or LSP functions so that the mouse tracking key bindings never get bound and that worked for me. But yeah, it's done. On Fri, Feb 28, 2025, at 10:34 PM, Stefan Kangas wrote: > StrawberryTea writes: > > > Okay, so as a follow-up, the previous solution did not work. I had to remove the > > event altogether with > > > > (setq-hook! ’post-command-hook track-mouse nil) > > > > Now they don’t trigger randomly for me anymore. > > It seems like the above fixed the issue, so I'm closing this bug. >