Query regarding dealing with windows of different depth



Hello everybody,
	This is regarding a problem i faced in one application (nautilus) dealing
with windows created at a different depth than the depth of the root window.
The bug id for this is
http://bugzilla.gnome.org/show_bug.cgi?id=78061

I could trace down the problem to
nautilus-desktop-window.c:set_gdk_window_background where we are trying to
set the background of a window with of Pixmap of the RootWindow.

When we do this on solaris we get a BadMatch X Window Error. However it
doesnt happen on linux.

The reason for this is on linux the visual classes are only available with
the default depth, so all the windows are created with the same depth as the
root window.
However on solaris (atleast on my machine) i am able to create windows with
depth different to the depth of the root window.
In this case the default depth of the root window is 8 planes and the
default visual class is PsuedoColor. And when the X Window Error occurs, the
depth of the window on which we are setting the background pixmap is 24.

Shouldnt applications or gtk+ library take care of the depth the windows are
created with, while dealing with pixmaps or windows at a different depth ?

Note: The BadMatch X Window error will also occur for the same reasons in
gdkwindow-x11.c:gdk_window_set_back_pixmap.

Warm Regards,
Shivram U

P.S: Attached xpdyinfo output of my solaris machine.

Attachment: xdpyinfo
Description: Binary data

**************************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.
********************************************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]