Bug 464733

Summary: Spectacle sometimes only captures partial window in Active Window mode
Product: [Plasma] kwin Reporter: Schlaefer <openmail+kde>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 5.26.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Window screenshot failing

Description Schlaefer 2023-01-24 11:31:39 UTC
Created attachment 155555 [details]
Window screenshot failing

SUMMARY

In the plasma beta 5.26.90 Spectacle often only captures a partial window when capturing Active Window or Window Under Cursor.


STEPS TO REPRODUCE
1. Open Spectacle and take a screenshot from a window

OBSERVED RESULT

Often (not always) only a partial part of the window is captured. See attached example video.

EXPECTED RESULT

The full window should be captured.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-rc4-273-tkg-cfs (64-bit)
Graphics Platform: Wayland
Processors: 12 × 11th Gen Intel® Core™ i5-11400 @ 2.60GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® Arc

ADDITIONAL INFORMATION

This happens on a multi display setup:

- Left: Unscaled - shows no issue
- Middle: Scaled - with this issue
- Right: Unscaled with this issue 

Setting the Middle display to Unscaled (100%) seems to fix the issue on Middle and Right.

It looks like the scaled display throws off some coordination calculation - but only sometimes?
Comment 1 Nate Graham 2023-01-24 20:42:43 UTC
Data comes from KWin; moving there.
Comment 2 Vlad Zahorodnii 2023-01-25 08:54:02 UTC
Can't reproduce. No idea how kwin can only  partially draw the window.
Comment 3 Schlaefer 2024-04-24 12:57:49 UTC
Seems to work now, can't reproduce anymore. Closing.