Bug 351807

Summary: state of a field not reset when click&hold is interrupted
Product: [Applications] kmines Reporter: Martin Walch <walch.martin>
Component: generalAssignee: Dmitry Suzdalev <dimsuz>
Status: CONFIRMED ---    
Severity: minor CC: jackhill3103, kde-games-bugs-null
Priority: NOR    
Version First Reported In: 4.0.22043   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of bad state in kmines playfield

Description Martin Walch 2015-08-26 16:16:52 UTC
Created attachment 94226 [details]
screenshot of bad state in kmines playfield

1. run kmines, start a new game
2. move the mouse cursor over a field, then press and hold the left mouse button
3. while still holding the mouse button, press Ctrl+H (show highscores) on the keyboard
4. while the highscore tables are shown, release the mouse button
5. close the highscores

Now all buttons are released, but as you can see in the attached screenshot,  the field that was clicked before looks like it is an empty uncovered field and cannot be fully accessed (like marking it as a mine).

You can get even worse results when doing the same with the middle button: it becomes impossible to uncover anything as long as the middle mouse button has not been clicked once more.

This might also be the cause to bug #284952 and bug #344894, and it might be related to bug #221725.
Comment 1 Justin Zobel 2022-10-14 05:46:54 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported and confirmed, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Martin Walch 2022-10-18 21:10:32 UTC
Problem still there in 4.0.22043, but it is mitigated: When reproducing this effect with the middle mouse button, it is now possible to uncover the individual fields by clicking on the respective field twice.
Comment 3 Oliver 2024-07-25 16:22:38 UTC
It is also possible to reproduce this behavior simply by hovering over a tile and

1. Holding left mouse button
2. Holding right mouse button
3. Releasing left mouse button
4. Releasing right mouse button

It happens frequently to me while playing, probably when alternating quickly between left/right clicking.
Comment 4 Jack Hill 2025-11-23 22:22:51 UTC
It looks like this was fixed here: https://invent.kde.org/games/kmines/-/commit/341f9a78c5b11b5b08551d5f8cc2634a903691a0

Please re-open the bug if you still experience this.
Comment 5 Jack Hill 2025-11-23 22:23:38 UTC
My bad I misread the bug report; I can still reproduce it. Sorry for the noise.