Hi,

    I am having a GTK+ application, which will be used to take graphics 
snapshot of individual windows. 
     In the below code before taking snapshot, verifying whether the 
depth of the window is zero or not. 

  XGetWindowAttributes (GDK_DISPLAY (), GDK_WINDOW_XWINDOW (window), 
&attr);

   /* Assumed Input only window */
   if (attr.depth == 0)
   {
        gdk_window_get_user_data (window, (void **) &widget);

        if (!widget)
            return;

        window = widget->window; /* parent window of InputOnly Window */
        x = attr.x;
        y = attr.y;
    }
 

   In the above code i assumed always the InputOnly window has depth 
zero. In this case i am taking the snapshot of the parent window of 
InputOnly window and assumed the parent window will have depth non-
zero. Here my questions are

 1. Whether my above assumptions correct or not?.
 2. Is there any other chance the depth of the window is zero ( other 
than InputOnly window).


thanks in advance,
Santhana 

        


**************************Disclaimer************************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************************

Reply via email to