Bug 479709

Summary: Capturing a rectangular region while using a drawing tablet set to "Follow the active screen" does not respect the active screen
Product: [Applications] Spectacle Reporter: Kath <krazykath>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: normal CC: fanzhuyifan, kde
Priority: NOR Keywords: qt6
Version First Reported In: 24.01.90   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=479710
https://bugs.kde.org/show_bug.cgi?id=479713
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kath 2024-01-12 19:30:14 UTC
SUMMARY
If the "Capture rectangular region" keyboard shortcut is used, while using a drawing tablet configured with "Target Display: Follow the active screen", it may sometimes move the tablet's cursor to another screen. This makes it impossible to use the tablet pen to select the area to screenshot on the active screen, although alt+tabbing seems to allow moving the focus between screens once the issue occurs.

The screen the cursor is moved to seems to be consistent, and is not the "Primary" screen in my case. 

STEPS TO REPRODUCE
1. Connect a Drawing tablet, configured with "Target Display: Follow the active screen"
2. Focus a window on a particular screen with the tablet pen to make it the active screen
3. Press keyboard shortcut to "Capture rectangular region"

If the issue cannot be reproduced, try again with the cursor initially focused on a different screen.

OBSERVED RESULT
The cursor controlled by the tablet pen is moved to a different screen

EXPECTED RESULT
The cursor remains on the active screen to allow selecting a rectangular region on the previously focused screen

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.91.90
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
Kernel Version: 6.2.0-39-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i9-9900K CPU @ 3.60GHz
Memory: 31.1 GiB of RAM
Graphics Processor: llvmpipe
Comment 1 fanzhuyifan 2024-01-12 21:08:58 UTC
Can reproduce
Comment 2 fanzhuyifan 2024-01-12 21:15:23 UTC
This happens regardless of the setting of active screen follows mouse.
Comment 3 Kath 2025-12-10 20:19:45 UTC
It's been a while, so thought to update that this still happens:

Spectacle version: 6.5.3

Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.10-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i9-9900K CPU @ 3.60GHz
Memory: 32 GiB of RAM (31.1 GiB usable)
Graphics Processor: AMD Radeon RX 6800