LMMS / LMMS/lmms

Crosshair/mouse position indicator shows when mouse not in editor window

Open
#7,745 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug master branch
Dominant language
C++
Stars
10.4k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
7

Description

### System Information

Windows 11

### LMMS Version(s)

Version 1.3.0-alpha.1.737+g6b494bd7a (win32/x86_64, Qt 5.15.6, GCC 9.3-posix 20200320).

### Most Recent Working Version

_No response_

### Bug Summary

When a specific window is focused and the mouse pointer is in it, a positional indicator shows up (crosshair for automation editor, highlighted note indicator for piano roll, etc).
By crosshair I mean the giant perpendicular lines that intersect at the mouse position.
When the mouse pointer is moved outside of the window while it's still in focus, the indicator still shows up.
**This _may_ be the cause of weird issues like being able to "draw" in the automation window while the track is playing if the playing position indicator moves through the position of the automation track. A similar issue occurs in piano roll windows.** See the final screenshot.

This looks similar to #1052, but perhaps the condition of losing focus isn't enough.

### Expected Behaviour

Show crosshair in (focused) windows only if mouse pointer is actually in the drawing region of those windows (ie, hovering above the drawing region specifically).

### Steps To Reproduce

1. Open automation editor in LMMS so it is focused.
2. Hover mouse pointer over automation editor so crosshair is showing.
3. Move mouse pointer outside of automation editor.
4. See the line that still remains in automation editor.

**This occurs with piano roll windows too.**

### Logs

_No response_

### Screenshots / Minimum Reproducible Project

![Image](https://github.com/user-attachments/assets/0aa0a196-d93a-4564-97d6-7ea57b422c93)

![Image](https://github.com/user-attachments/assets/08231202-94c6-48cf-bc77-3459624be4dd)

![Image](https://github.com/user-attachments/assets/bb3093eb-6bed-41ae-9637-74bff9ce1168)

![Image](https://github.com/user-attachments/assets/2438f4bb-823c-4025-bf7f-5d57c94da173)

### Please search the issue tracker for existing bug reports before submitting your own.

- [x] I have searched all existing issues and confirmed that this is not a duplicate.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior first in the automation editor and piano roll, following the issue's four-step sequence and checking both drawing regions. Trace how each editor handles the mouse leaving its drawing area; done means the crosshair or note indicator disappears outside that region while still appearing when the pointer is over it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.