Bug 509777

Summary: Magnifier remains visible when holding both shifts keys, until pointer is moved again
Product: [Applications] Spectacle Reporter: madness742
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: minor CC: kde, martial_vipers.2p, nate
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description madness742 2025-09-22 09:56:04 UTC
SUMMARY
When holding both shift keys, the magnifier gets stuck on the screen. It also gets stuck when releasing the shift key after cursor movement.

STEPS TO REPRODUCE (both shift keys)
1. Press on the PrtScn key to bring up Spectacle.
2. Press and hold both left and right shift key at the same time.

STEPS TO REPRODUCE (after cursor movement)
1. Press on the PrtScn key to bring up Spectacle.
2. Move the cursor while holding shift.
3. Stop moving the cursor, and then release the shift key.

OBSERVED RESULT
The magnifier gets stuck on the screen in both situations.

EXPECTED RESULT
The magnifier shouldn't be visible anymore.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
- Graphics Platform: Wayland
Comment 1 Nate Graham 2025-09-23 16:40:56 UTC
Can reproduce.
Comment 2 MichaƂ 2025-10-27 19:07:52 UTC
Adding my reproduction, which I believe is the same issue, but with different steps.

STEPS TO REPRODUCE
0. Have default settings of:
  - set `Show magnifier:` to `While holding Shift`
  - set `When launching Spectacle:` to `Take rectangular screenshot` (and `While spectacle is running` `Press screenshot key to:` `Take a new screenshot`)
  - default keybinds of `Launch Spectacle` to `Print` for Global and `Meta+Shift+S` for Global Alternate
1. Do not touch your mouse during reproduction, not even 1 px movement
2. Press Print Screen to open Spectacle (and its screenshot-taking UI)
3. Everything is okay
4. Dismiss it
5. *Press Ctrl+Shift+S* (WITHOUT moving the mouse)
6. The screenshot UI opens and the magnifier is shown, despite NOT holding the Shift button (we just clicked and immediately released the key combination) (NOTE: reproduction ratio is not 100%, sometimes it shows up, sometimes blinks, sometimes won't show)
7. As for OP: pressing and releasing Shift right now will not hide this magnifier UI
8. Move mouse by 1 px
9. The magnifier disappears and can now be used normally again

In other words, pressing Ctrl+Shift+S to start making a screenshot probably has its "Shift" trigger the magnifier UI show-up, which lingers in this broken state until mouse cursor is moved to make it disappear, and it's immune to actual Shift key presses before disappearing.