Bug 454497

Summary: spectacle -u doesn't work
Product: [Applications] Spectacle Reporter: jackyguo18
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: normal CC: antonio.prcela, dev.bacteriostat, justin.zobel, kde, noahadvs
Priority: NOR    
Version First Reported In: 22.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jackyguo18 2022-05-27 17:52:29 UTC
SUMMARY
The commands `spectacle -u` and `spectacle -uw` (remove the backticks) both fail.

STEPS TO REPRODUCE
Run `spectacle -u` (without the backticks). If no error message is produced, run `gdb -ex run -ex q --args spectacle -u`.
Try again with `spectacle -uw` and its corresponding GDB command.

OBSERVED RESULT
Spectacle doesn't prompt me to select a window. In addition, it shows an error in the GUI and prints an error message:

This is the error:
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QPixmap::scaled: Pixmap is a null pixmap

EXPECTED RESULT
Manually opening Spectacle, selecting "Window under cursor", and selecting a window works. The commands should work the same.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArcoLinux
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
This is on Wayland, in case the error message didn't seem obvious.
Comment 1 Bacteria 2022-05-31 08:25:12 UTC
I am not able to get the error even with gdb but spectacle is ignoring -u and -uw flags and just prompting me to select a rectangular region which is the default that I have setup for spectacle.
Comment 2 Bacteria 2022-05-31 08:26:07 UTC
Here's my system info

Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Graphics Platform: Wayland
Comment 3 Justin Zobel 2022-11-11 04:47:12 UTC
Confirmed on 22.08.2 on Fedora 37.
Comment 4 Noah Davis 2023-11-22 14:32:35 UTC
This seems to be fixed.