This is for KDE4. I have not attempted this yet in KDE5, seeing as I am not proficient enough with it to try such "advanced" features. Which sucks, but that aside. This bug is about "ksnapshot/utopic,now 4:4.14.1-0ubuntu1 amd64" in kubuntu 14.10. The bug involves making a screenshot of a window and nothing but the window is selected. There is an option to deselect or to not select and to not capture the window decorations of the window. When this happens, the screen area that is captured is off. There is a border that exists as window-decoration-area for this specific theme at least, and this area is captured as part of the window but this area is empty (or has this blue glow from Oxygen). As a consequence: the window decoration is still there, and still shown in the screenshot, only not captured in a correct way. The window size is now the window size WITHOUT the decorations (as captured in the screenshot/file) but this border is still shown in it. The picture in the image is transposed a large margin to the right and bottom due to an existing area of the window where window decoration happens. This is for OXYGEN window decorations and the blue glow doesn't really matter, I can't get it to turn off (completely) this time. I have not enabled it yet to completely void that area. But doing so would require me to turn off the window decorations for every screenshot. That is not really doable. This means the feature "Include window decorations" does not work (while deselecting it) for the Oxygen theme, at least. You can see it in the screenshot, it speaks a thousand words. The screenshot is just something unrelated that I was working on. Reproducible: Always Steps to Reproduce: 1. Deselect "Include window decorations" 2. Make a snapshot of an oxygen window 3. Presto Actual Results: There is a border that should not be there, and the window decorations should be gone, but they aren't. Expected Results: The expected result is for the blue glow and the shadows and so on to be gone. Then the border area where these effects were previously or usually shown should not be included in the picture. The area is actually included in the picture at the top and left bar side. This has been so for as long as I've used 14.10 Kubuntu, which is since about January this year.
Created attachment 92797 [details] Another screenshot showing the anomaly I have attempted to turn off all my window decorations (at least the shadow and the border glow) in Oxygen and try again. When "Include window decorations" is SELECTED (the default) I now have a pristine window, which is what I want. When "Include window decorations" is DEselected (not the default) I still have a bad screenshot due to some existing Oxygen thing still existing. In other words, a border is rendered that is not even visible. See the attached screenshot. It is not readily apparent, but.... The bottom side of the screen (the lower edge) is cut off from the screenshot, there is a row of icons there in the original, real image of the window. This is because there is a border added at the top. That transposes or pushes the image "down" because the top border is filled up with emptiness.
In actual affect (in the 2nd screenshot) there is not even that border included at the top; the calculations are just off. The resulting image is smaller than the actual window. But this happens as a result of (preponderously) some Window Decoration making it into the resulting image. Or calculations. There is apparently still a top area that counts as Window Decoration. I am not entirely sure, but this would account for the bad calculations. This is an area that is substracted from the resulting window height. The original height is done minus that border area, and the resulting height is less than the real, original height. Something has gone fishy.
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!