Re: Re: how to get correct image after switch to other terminal

2004-03-03 Thread wjd
Hi,

In fact,i can get correct image with common window at the time,BUT i found the 
image of root window became wrong, it's so strange. Any advice is welcome!


Mark Vojkovich Wrote:

  There is no image when you are switched away.  I'm not sure
about how to figure out how to tell when switched away.  I thought
there was something in the XFree86-VidModeExtension, but it
looks like there isn't.  Certainly, you could monitor the visibility
events on the window you are grabbing.  If it's fully obscured, there's
nothing to see.

   MArk.   

On Wed, 3 Mar 2004, wjd wrote:

 Hi All,
 
  I wrote a X11 application to get image of some window by XGetImage(),but after 
 i switch to other terminal by Ctrl+Alt+F2,my application can't get correct image of 
 windows.Are there any idea to fix this problem? or how can X11 application to know 
 if desktop has been switch to another terminal? Thanks!
  


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel





___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: how to get correct image after switch to other terminal

2004-03-02 Thread Mark Vojkovich
On Wed, 3 Mar 2004, wjd wrote:

 Hi All,
 
   I wrote a X11 application to get image of some window by XGetImage(),but after 
 i switch to other terminal by Ctrl+Alt+F2,my application can't get correct image of 
 windows.Are there any idea to fix this problem? or how can X11 application to know 
 if desktop has been switch to another terminal? Thanks!
   

  There is no image when you are switched away.  I'm not sure
about how to figure out how to tell when switched away.  I thought
there was something in the XFree86-VidModeExtension, but it
looks like there isn't.  Certainly, you could monitor the visibility
events on the window you are grabbing.  If it's fully obscured, there's
nothing to see.

MArk.   

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel