Bug 327493

Summary: "Section of a window" mode screenshots are shifted by the window offset
Product: [Applications] ksnapshot Reporter: Joachim Mairböck <j.mairboeck>
Component: generalAssignee: Richard Moore <rich>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: kde-windows
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Joachim Mairböck 2013-11-12 12:31:25 UTC
When trying to take a "section of a window" screenshot from a non-maximized window, the resulting screenshots have an offset down and to the right, which is equivalent to the window position (i.e. the offset of the window from the upper-left screen corner).

For maximized windows, this offset is 0, so the result is correct.

Reproducible: Always

Steps to Reproduce:
1. Open an application to take a screenshot from, which allows selection of "sections" (e.g. a Windows Forms application), make sure it is not maximized
2. Choose "Section of a window" in KSnapshot
3. Take a screen shot
Actual Results:  
The screenshot area is shifted to the right and the bottom and shows the wrong area of the screen.

Expected Results:  
The correct screen area is captured.

Non-maximized windows cannot be moved above the top screen edge on Windows, and a maximized title bar is smaller than a non-maximized one (on Windows 7), so all non-maximized windows have always a non-zero offset.
Comment 1 Christoph Feck 2013-11-16 21:19:47 UTC
Ah, maybe that was the reason KSnapshot was not built previously for Windows... But I guess since the basic snapshot works, it makes no sense to disable it again.
Comment 2 Andrew Crouthamel 2018-09-04 04:19:03 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years and I will be closing this bug. Spectacle is the replacement for ksnapshot now. Please test again and file a new bug for Spectacle if you still have issues. Thank you!