question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sometimes controls don't activate on mouse clicks

See original GitHub issue

This is really tricky to reproduce and I have not yet found a reliable way of reproducing it with the debugger.

  1. Run demo.c in cmd.exe or ConEmu on Windows (any terminal that supports mouse).
  2. Click on any control (e.g. a top-level MenuBarItem or one of the radio buttons.
  3. Click on another control.
  4. Then another …
  5. Eventually you’ll notice one of your clicks does nothing; the target control does not get focus as expected. Clicking again will work.
  6. You’ll think you’re crazy and you just either didn’t hit the mouse button hard enough or missed the hit-target. But you didn’t.
  7. You’ll try again and find you can’t precisely reproduce it the same way.

P.S. I thought I had introduced this bug in my upcoming MenuBar PR and was actually quite happy to find it also exists in the current master and that it exists across all controls.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:24

github_iconTop GitHub Comments

2reactions
tigcommented, Jul 8, 2020

I think it is fixed. It was hard to reproduce before, and I’ve been trying since @bdisp made his latest changes that fixed some window dragging issues…I think they were the root cause.

Note that mouse is still broken in Windows Terminal. This is for all GUI apps, and is not specific to Terminal.Gui.

2reactions
BDispcommented, Apr 29, 2020

But it is only working on Windows 10. Still working on Curses.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse Clicks Not Registering? 14 Proven Ways To Fix It
How to Fix Mouse Click Not Registering? · Change Buttons Configurations · Lower High CPU usage · Disable USB Selective Suspend · Uninstall...
Read more >
How to Fix the Left Click Mouse Button Not Working on ...
How to Fix the Left Click Mouse Button Not Working on Windows 10 · 1. Fix a Corrupted User Profile · 2. Check...
Read more >
After a while, mouse click fails and only Ctrl Alt Del brings ...
I can work in an active window with no problem but the taskbar/start menu and all other windows don't respond to mouse clicks....
Read more >
FIX: Mouse Moves but Cannot Click (Solved) - wintips.org
1. Enable the mouse keys by using the instructions above (Step-3, Case B: 1-3), to control the mouse with the numeric pad on...
Read more >
Windows 10: Mouse unresponsive to left and right click
The solution to the problem is found! · Go to Device Manager, find the corresponding mouse name, right click on it, select Disable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found