Bug 512360

Summary: Screenshotting a modal window from `flathub`'s `com.jetbrains.IntelliJ-IDEA-Community` via the “Select Window” option caused its height to be reduced
Product: [Applications] Spectacle Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 6.5.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://youtrack.jetbrains.com/api/files/74-3082802?sign=MTc2Mzc2OTYwMDAwMHwxMS0xNDMxODgyfDc0LTMwODI4MDJ8NUk4cG8zZW9rZEFPSVlTanZLUWlFUC05U21qcVc1eGpPTmgxMHNjUVpJNA0K&updated=1763594213519
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The Incorrectly-Sized Output Of The “Select Window” Option
The Correctly-Sized Output Of The “Rectangular Region” Option

Description Roke Julian Lockhart Beedell 2025-11-19 23:28:00 UTC
Created attachment 186965 [details]
The Incorrectly-Sized Output Of The “Select Window” Option

# SUMMARY

When reporting https://youtrack.jetbrains.com/issue/IDEA-382346/Crashes-are-impossible-to-report-via-the-Report-this-problem-option-in-the-modal-that-appears.#what-occurs-instead:~:text=the%20current%20platform!-,A%20Screenshot,-My%20Environment (for my brother), I needed to capture a screenshot of an error modal. I recall that this failed via “Active window”, which may be relevant, but isn't the purview of this issue. What *is* is that it succeeded via the selection-under-cursor option, but the resultant image was vertically shrunk.

# STEPS TO REPRODUCE

1. Reproduce https://youtrack.jetbrains.com/issue/IDEA-382346/Crashes-are-impossible-to-report-via-the-Report-this-problem-option-in-the-modal-that-appears.#what-occurs-instead:~:text=the%20current%20platform!-,A%20Screenshot,-My%20Environment.

2. Invoke `spectacle`.

3. Select the QPushButton that is labelled “Select Window”.

# OBSERVED RESULT

The height was erroneously reduced.

# EXPECTED RESULT

It shouldn't be incorrectly sized.

# SOFTWARE/OS VERSIONS

> ~~~
> Name        : spectacle
> Epoch       : 1
> Version     : 6.5.2
> Release     : 1.fc43
> Architecture: x86_64
> Install Date: Sun 09 Nov 2025 21:39:39 GMT
> Size        : 6857564
> Signature   :
>               RSA/SHA256, Thu 06 Nov 2025 15:08:03 GMT, Key ID 829b606631645531
> Source RPM  : spectacle-6.5.2-1.fc43.src.rpm
> Build Date  : Thu 06 Nov 2025 11:45:10 GMT
> Build Host  : buildvm-x86-15.rdu3.fedoraproject.org
> Packager    : Fedora Project
> Vendor      : Fedora Project
> Bug URL     : https://bugz.fedoraproject.org/spectacle
> ~~~

# ADDITIONAL INFORMATION

The “Rectangular Region” option did not exhibit this.
Comment 1 Roke Julian Lockhart Beedell 2025-11-19 23:28:55 UTC
Created attachment 186966 [details]
The Correctly-Sized Output Of The “Rectangular Region” Option