Re: Capturing offscreen windows



Ian Gotenks staggered into the Black Sun and said:
Dances With Crows wrote:
Is it possible to capture [an] entire window (with decorations),
which is intentionaly put offscreen, into a bitmap?
Check "man xwd"
The OP may wish to use wmctrl to activate and move the window to the
current desktop, then run xwd -frame on it, then use wmctrl again to
minimize the window. Remember, if a window's partially offscreen,
xwd won't capture any of the parts that are offscreen. If there's a
way to get offscreen/minimized window contents, it's not in xwd,
I want to [capture a window's contents] [programmaticaly], not using
external tools

Huh? If you want to write a program, then do so--but it'll take longer
than using existing utilities.

I do not want to bring offscreen window back to [the] screen to
perform capturing--this would generate a lot of flickering. And I
want to capture the whole window. [A] window brought to the screen may
be partialy covered by other windows. After a lot of googling I tend
to think it is not doable in X ...

Everything's doable, it just may be more annoying than you want. What
is the ultimate goal of all this fooling around, anyway? You never
provided any specific info about that. There may be an easier way.
Regardless, you should look at the docs for Xvfb.

--
There is not enough coffee in the world.
--TimC in ASR
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • Re: Capturing offscreen windows
    ... The OP may wish to use wmctrl to activate and move the ... window to the current desktop, then run xwd -frame on it, then use ... Best leave dreams to those that can afford them." ...
    (comp.os.linux.x)
  • Re: starting an application....on another desktop!
    ... on the underlying window manager? ... there some 'generic' command? ... but you can install wmctrl and use it. ... list of all windows the WM is managing, ...
    (comp.os.linux.misc)
  • Re: How to make a window stay on top in GNOME2
    ... > tool like devilspie or wmctrl, eg ... 0x02e00019 1 k62.mae.cornell.edu XMMS ... Segmentation fault ... Window manager's "showing the desktop" mode: ...
    (comp.os.linux.misc)
  • Re: Find window with given name and close it
    ... Assuming your WM is NetWM/EWMH compliant, wmctrl -l ... gets you a list of windows, and wmctrl -c $WINDOW will gracefully close ... Asking Java to do this is like asking a pig to do calculus. ... "Platform ...
    (comp.os.linux.misc)
  • Re: Find window with given name and close it
    ... Assuming your WM is NetWM/EWMH compliant, wmctrl -l ... gets you a list of windows, and wmctrl -c $WINDOW will gracefully close ... Asking Java to do this is like asking a pig to do calculus. ... "Platform ...
    (comp.os.linux.misc)