Created attachment 76297 [details] Screenshot showing window which exceeds the vertical resolution When creating a screenshot of a window wider/taller than the screen's resolution, the part of the window which is beyond the screen's edge is: # horizontal - rendered completely transparent, even the shadow is cut off once the screen's edge is reached # vertical - only a gray background is rendered - on the bottom of the window the windeco is rendered again, but mirrored See the attached screenshots for examples.
Created attachment 76298 [details] Screenshot showing window which exceeds the horizontal resolution Please note, that the screenshot file isn't cut off at the right screen edge, but is actually just transparent.
please add output of qdbus org.kde.kwin /KWin supportInformation
Happens here as well nvidia; gl1 / 2 only; not xrender; not blur/zoom issue; not texture limit; shotting across two displays (one scene) works flawless. it's likely clipped against the screen size/scene when rendered.
My guess is that it is somewhere in the FBO usage. The texture size is correct - that I just tested. But it could still be viewport. What might help: how is the window looking like in Present Windows with Lanczos filter enabled? Is it also showing the problem or is it correct there? I hope it's correct as that would make fixing very simple.
(In reply to comment #4) > What might help: how is the window looking like in Present Windows with > Lanczos filter enabled? As expected. (with an absur ratio, but uncut)
(In reply to comment #5) > (In reply to comment #4) > > What might help: how is the window looking like in Present Windows with > > Lanczos filter enabled? > > As expected. (with an absur ratio, but uncut) good, I'll do a line by line comparison of the FBO related code
(In reply to comment #4) > My guess is that it is somewhere in the FBO usage. The texture size is > correct - that I just tested. But it could still be viewport. I don't know what I read in the code, but it is obviously *wrong*. The texture size is created from displayWidth()/displayHeight(), so that just cannot work. working on it
@Elias: if possible please give the patch a try.
The patch provided on reviewboard fixes the issue for me. Thanks for even fixing such non-critical issues that fast! :)
Git commit e15aaaef060ee823d143831766961fc3589cb65c by Martin Gräßlin. Committed on 08/01/2013 at 10:46. Pushed by graesslin into branch 'master'. Use window size for offscreen texture size in screenshot effect Effect used the display size which caused windows being larger than either width or height not to be captured correctly. Now it uses the window size for the offscreen texture which also requires to adjust the modelviewprojection matrix. As an unrelated change the pointer to GLRenderTarget and GLTexture are changed to a QScopedPointer and some variables which got moved around are consted. FIXED-IN: 4.11 REVIEW: 108258 M +87 -43 kwin/effects/screenshot/screenshot.cpp M +2 -0 kwin/effects/screenshot/screenshot.h http://commits.kde.org/kde-workspace/e15aaaef060ee823d143831766961fc3589cb65c