notepad-plus-plus icon indicating copy to clipboard operation
notepad-plus-plus copied to clipboard

Notepad++ leaves mouse in clicked state

Open joeyhub opened this issue 9 years ago • 4 comments

sometimes when using notepad++ the mouse gets stuck and the only way to fix it is to restart notepad++. It breaks the mouse across all of windows until you close notepad++. I've had this problem on both windows 7 and windows 10 with the 32 bit version and 64 bit version. It has been like that for many months now.

It's a hard bug to replicate/reproduce. I would suggest at least scanning over the code for anything that hooks windows UI events/input to see if there is anything obvious there,

joeyhub avatar Jun 09 '17 09:06 joeyhub

I've never run into this issue using Notepad++. My initial guess would be hardware issues with your mouse or usb ports, but it's strange the issue subsides when restarting Notepad++.

Does the frozen left click affect OS activities as well (not just Notepad++)?

AngryGamer avatar Jun 09 '17 10:06 AngryGamer

I considered that and did actually try with another mouse, etc.

It's definitely linked to notepad++ somehow but it does also end up screwing up with the entire OS as well.

It might be my imagination seems to have a habit to trigger when notepad++ has a bit of redraw lag and when the mouse passes the splitter bar in the middle. After it happens it keeps hooking onto the splitter bar as well. The only thing that fixes it is closing notepad++. I think it also might have triggered once when I clicked the result panel of find in file to bring back focus.

I think it is safe to assume that redraw lag + bringing notepad++ back into focus are definitely components of the problem. The split pane could be an issue too with the two scintillas if they both went for the mouse on refocus, etc.

There's really nothing else special I know off about the system likely to have an impact. I think the only unusual software that might effect input I have is for my K70 RGB keyboard but I doubt it's that.

It happens two or three times a week of heavy use. If we can find anyone else with the problem, we can correlate if we have any of the same software installed.

joeyhub avatar Jun 13 '17 21:06 joeyhub

I have confirmed this bug. I have experienced it a few times, and Windows becomes unusable. Always, closing Notepad++ solves the problem, so I'm 100% certain the bug is in Notepad++. The mouse button seems to get stuck in Notepad++ and it retains that behavior throughout Windows somehow. I tested on Windows 7. It's a rare bug, but potentially catastrophic because it causes the inability to use Windows. Before I figured out it was Notepad++, I would have to do a hard reset of my PC, losing all my unsaved work, just to regain control over it.

badon avatar Jan 31 '19 16:01 badon

I can not reproduce it in the latest version (8.1.9.3). If you can reproduce steadily, please create a new issue with the step by step instructions to reproduce the bug.

donho avatar Dec 24 '21 01:12 donho