开发者

Desktop effects (compiz) turned on: How to capture the image of a window WITH border/frame/title bar?

I would like to get the image of an X server Window (toplevel window, parent is the root Window) with its border/frame/title bar. I have already tried several libraries (Xlib, XRender, gdk, cairo) but none of them works. The captured image has the same geometry as the window but the frame is missing.

The problem is that the child window which should hold the frame image is InputOnly. The reason might be for this that the fr开发者_开发技巧ame is rendered by the window decorator on the fly the same time as the Window itself.

I cannot capture the image from the RootWindow as the Window might be partially or entirely covered.

Redecorating the captured Window image could be an alternative.

Any suggestions? Thanks.

PS. When compiz is not running everything works as expected.


I use shutter for screen shots on linux, it's super easy to capture whatever portion of the screen you want. As a bonus, there are tools to add arrows or highlight sections.

http://shutter-project.org/preview/screenshots/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜