Bug 390762 - Window Under Cursor mode includes any windows that are partially overlapping the window that's under your cursor
Summary: Window Under Cursor mode includes any windows that are partially overlapping ...
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 18.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-20 03:48 UTC by Nate Graham
Modified: 2021-11-01 16:13 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Overlapping window mistakenly captured, too (260.90 KB, image/png)
2018-02-20 03:51 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2018-02-20 03:48:19 UTC
See attached screenshot. The cursor was over the Kate window, and the Konsole window was partially overlapping the Kate window. "Window Under Cursor" mode undesirably captured the overlapping part of the Konsole window, too. 100% reproducible when any case of Window X partially overlapping window Y, and you take a screenshot of window Y with Window Under Cursor mode.
Comment 1 Nate Graham 2018-02-20 03:51:39 UTC
Created attachment 110831 [details]
Overlapping window mistakenly captured, too
Comment 2 Kai Uwe Broulik 2018-02-20 08:57:11 UTC
Can you check whether that's actually Spectacle or a bug in KWin's screenshotForWindow DBus grabber?
Comment 3 null 2018-02-20 14:44:48 UTC
Testing in IceWM the behaviour is the same.

Probably NOTABUG, but might be a usability issue. See https://phabricator.kde.org/D10673#210005.
Comment 4 Nate Graham 2018-02-20 14:46:11 UTC
Hmm, yeah, possibly. I would be strongly in favor of collapsing the two modes into one, if we can do it without losing features.
Comment 5 Nate Graham 2018-02-21 04:58:25 UTC
Tracking that in https://phabricator.kde.org/T8033
Comment 6 Viorel-Cătălin Răpițeanu 2019-02-12 06:43:14 UTC
Putting this ticket on confirmed as it's still reproducing using the master branches. The resolution of this will depend of T8033.
Comment 7 Matej Mrenica 2019-03-30 18:01:04 UTC
I also have this issue.

Arch Linux
Plasma 5.15.3
KDE Applications 19.03.80
KDE Frameworks 5.56
Qt 5.13.0beta1
Comment 8 Patrick Silva 2021-10-23 12:56:21 UTC
I'm unable to reproduce at least on Wayland.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 9 Antonio Prcela 2021-11-01 16:13:10 UTC
Steps to reproduce:
Open Spectacle, set to 'Window under cursor', uncheck 'Capture the current pop-up only'.
Click on 'Take a New Screenshot'.
----
When checking 'Capture the current pop-up only', it doesn't include an overlapping window.

When using META+CTRL+Print, it also doesn't include an overlapping window.
Launching via shortcut doesn't check for 'mCaptureTransientOnly'.
Whereas launching via the button, checks 'mCaptureTransientOnly':
https://invent.kde.org/graphics/spectacle/-/blob/master/src/Gui/KSWidget.cpp#L261