goatcorp / Dalamud

FFXIV plugin framework and API
GNU Affero General Public License v3.0
1.25k stars 280 forks source link

Dalamud windows sometimes fail to release mouse cursor #956

Open TheNuclei opened 2 years ago

TheNuclei commented 2 years ago

Occasionally when interacting with various plugin windows or in the settings of Dalamud itself while in game, the mouse cursor will refuse to be released, maintaining a hardware cursor that can only interact with dalamud across the entirety of the XIV screen and you can no longer click in game elements.

This necessitates a full restart of the client.

I'll try to figure out more specific scenarios in which this happens and update the post when I find them.

Blooym commented 2 years ago

Have also been able to replicate this issue, I've found that sometimes I can regain control of the mouse by spamming right click repeatedly until the mouse becomes free again.

Alex-Gideon commented 2 years ago

I believe I have found a way to replicate this issue at least semi-consistently. When using 3 or more mouse buttons while clicking the 'x' to exit a window or dragging my mouse cursor off of it the dalamud window does not let go of focus. It seems to happen more often with mouse 4 and mouse 5, which I know not every mouse has. So if I had to guess it is something to do with mouse 4 + 5 being combined with other mice' button presses at once? The one thing I have been unable to replicate is fixing the error. Sometimes it fixes itself, other times it does not.

TheNuclei commented 2 years ago

Maybe a workaround can be added by force relinquishing focus with a certain key combination? The issue persists and appears to be tied to when 'clickable' elements of dalamud need to adjust their size or vanish.

TheNuclei commented 2 years ago

Error is still happening. Still cannot reliably recreate the issue. Happens most frequently with QoL Bars but continues to occur with all manner of Dala's UI elements.

Karatashi commented 2 years ago

I've been having a similar issue for a while, but didn't understand what was causing it. However, what Alex-Gideon said seems to be the issue for me as well. My Discord push-to-talk button is one of my mouse buttons, and when I'm doing stuff in Dalamud and using my push to talk, it often won't release my mouse.

My somewhat consistent fix as of late has been outright spamming my mouse buttons a bit until it releases the cursor. It works somewhat quickly and often fixes the problem for me.

mirandaran commented 1 year ago

I've been having the same problem consistently across multiple reinstallations of dalamud, plugins, ffxiv itself, disabling and enabling plugins one by one since around February or March of this year, I also use mouse 4 as push-to-talk for discord and mouse 5 for autorun in game. It happens with any plugin's config windows as far as I can tell, indiscriminately. I also have nvidia and discord overlays active while running ffxiv.

slotthhy commented 1 year ago

This issue has been replicated on my local machine and fixed with #1043. Please comment here if you are still encountering this issue in its current or a similar form after checking that your Dalamud is indeed version 7.3.2.0.