Bug 499818 - Enabling "Include window titlebar and borders" for an "Active Window" screenshot of a `QDockWidget` renders all borders, whereas disabling it rendered solely the right and bottom ones.
Summary: Enabling "Include window titlebar and borders" for an "Active Window" screens...
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 24.12.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-11 15:45 UTC by Roke Julian Lockhart Beedell
Modified: 2025-02-11 16:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
"Include window titlebar and borders" enabled (for `#c0`). (30.67 KB, image/png)
2025-02-11 15:45 UTC, Roke Julian Lockhart Beedell
Details
"Include window titlebar and borders" disabled (for `#c0`). (27.83 KB, image/png)
2025-02-11 15:45 UTC, Roke Julian Lockhart Beedell
Details
A `python3.13` script that generates the applicable `QDockWidget` (for `#c0`). (14.52 KB, text/x-python)
2025-02-11 15:47 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2025-02-11 15:45:03 UTC
Created attachment 178145 [details]
"Include window titlebar and borders" enabled (for `#c0`).

SUMMARY
-------

Enabling "Include window titlebar and borders" (for an "Active Window" screenshot of a `QDockWidget`) rendered all borders, whereas disabling it rendered solely the right and bottom ones. Images shall be attached to demonstrate this.

STEPS TO REPRODUCE
------------------

1.	Create a `QDockWidget`.
2.	Undock it.

3.	*Enable* "Include window titlebar and borders".
4.	Select "Active Window".

	OBSERVED RESULT
	---------------

	Enabling "Include window titlebar and borders" rendered all borders...

5.	*Disable* "Include window titlebar and borders".
6.	Select "Active Window".

	OBSERVED RESULT
	---------------

	...whereas disabling it rendered solely the right and bottom ones.

EXPECTED RESULT
---------------

Both modes should display *all* window borders.

SOFTWARE/OS VERSIONS
--------------------

-	1.	~~~sh
		#!/usr/bin/env sh
		kinfo
		~~~

	2.	> ~~~YAML
		> Operating System: Fedora Linux 41
		> KDE Plasma Version: 6.2.5
		> KDE Frameworks Version: 6.10.0
		> Qt Version: 6.8.2
		> Kernel Version: 6.12.11-200.fc41.x86_64 (64-bit)
		> Graphics Platform: Wayland
		> Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
		> Memory: 30.4 GiB of RAM
		> Graphics Processor: AMD Radeon RX 5700
		> ~~~

-	1.	~~~sh
		#!/usr/bin/env sh
		rpm -qa spectacle
		~~~

	2.	> ~~~RS
		> spectacle-24.12.1-1.fc41.x86_64
		> ~~~

ADDITIONAL INFORMATION
----------------------

- This has never occurred to any other window during my usage of Spectacle, I believe because the border isn't considered to be part of the window decorations due to how it's implemented.

- Discovered whilst attempting to acquire screenshots for https://github.com/KDAB/KDDockWidgets/issues/10#issuecomment-2651184223.
Comment 1 Roke Julian Lockhart Beedell 2025-02-11 15:45:17 UTC
Created attachment 178146 [details]
"Include window titlebar and borders" disabled (for `#c0`).
Comment 2 Roke Julian Lockhart Beedell 2025-02-11 15:47:45 UTC
Created attachment 178147 [details]
A `python3.13` script that generates the applicable `QDockWidget` (for `#c0`).

Remember to run this through VT before running it! Obviously I'd trust me, but you shouldn't.