Bug 444482

Summary: Wayland: Spectacle screenshot of window under cursor works via GUI but not in background mode
Product: [Applications] Spectacle Reporter: chimak111 <chimak111>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, meven.car, meven29, nate
Priority: NOR Keywords: wayland
Version: 21.08.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description chimak111 2021-10-27 12:52:27 UTC
SUMMARY
With Spectacle 21.08.2 in Wayland, I can capture the window under cursor via the GUI but cannot do so in background mode. 

spectacle -bn -u -o $HOME/Pictures/"$(date +%Y%m%d-%H%M%S)".jpg does nothing (bound to Meta+Ctrl+U).

spectacle -bn -r -o $HOME/Pictures/"$(date +%Y%m%d-%H%M%S)".jpg works (bound to Meta+Ctrl+R).

spectacle -bn -f -o $HOME/Pictures/"$(date +%Y%m%d-%H%M%S)".jpg works (bound to Meta+Ctrl+F).

spectacle -bn -d 10000 -o $HOME/Pictures/"$(date +%Y%m%d-%H%M%S)".jpg works (bound to Meta+Ctrl+D).


EXPECTED RESULT
Using "-u" should work in background mode. Or maybe "spectacle --help" should be modified to indicate which options won't work in Wayland.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon
(available in About System)
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-11-08 17:14:18 UTC
Can confirm.
Comment 2 Méven Car 2021-11-15 09:59:02 UTC
This one reports the issue for the command line case but the bug origin is the same as the other.

https://bugs.kde.org/show_bug.cgi?id=429390#c9

*** This bug has been marked as a duplicate of bug 429390 ***