How to set a Deadzone for Mouse-Drag for non-KDE Applications?

Unfortunately, I keep constantly dragging things, when I intended to click them. This includes elements in non-KDE applications like Firefox tabs, vscode tabs, etc..
Firefox is especially annoying, since dragged out tabs become their own window.

KDE apps work just fine, I don’t grab windows or drag Dolphin tabs on accident. These have a more than generous deadzone.
Plasma itself is extra nice, on window-top-bars, press-time also matters, and there is even a second deadzone before a drag would actually un-maximize a grabbed window. :ok_hand:

It feels like Firefox has a deadzone about half of KDEs, and in vscode it’s about two pixels.

Is there a way to set a deadzone for mouse movement, before a click becomes a drag, for non-KDE apps running under Plasma?

I have a suspicion that this will be extra difficult for electron based apps, like vscode, discord, telegram, etc.., since they all behave wildly differently, at least on my system.

My setup:
Plasma 6.5.3 Wayland on Archlinux, proprietary Nvidia drivers, Linux 6.17.9-zen1-1-zen.
I have three 4k monitors, set to 150% dpi scaling.

I have the same issue, though it sounds like you’ve spent more time troubleshooting than me so far. I’ve mostly noticed clicks becoming drags in Firefox, but I’m certain I’ve experienced it elsewhere also. It might also be solvable by adjusting the mouse acceleration curve (not certain), but I don’t know where to do that either.

My setup:
KDE Plasma Version: 6.6.1
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 6.18.9-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: AMD Radeon RX 7800 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B45
System Version: 2.0

Using a single 4K screen, but only running at 1080p 120Hz HDR.
Valve Index typically connected, but not active (only notice weird login screen resolution).

I fear I’ve settled on completely disabling tab-detaching in Firefox.
In about:config set ‘browser.tabs.allowTabDetach’ to false.
Tabs can still be detached from the context menu afterward.