2
* $Id: compwindow.c,v 1.10 2005/07/03 07:01:17 daniels Exp $
4
* Copyright © 2006 Sun Microsystems
6
* Permission to use, copy, modify, distribute, and sell this software and its
7
* documentation for any purpose is hereby granted without fee, provided that
8
* the above copyright notice appear in all copies and that both that
9
* copyright notice and this permission notice appear in supporting
10
* documentation, and that the name of Sun Microsystems not be used in
11
* advertising or publicity pertaining to distribution of the software without
12
* specific, written prior permission. Sun Microsystems makes no
13
* representations about the suitability of this software for any purpose. It
14
* is provided "as is" without express or implied warranty.
16
* SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18
* EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
* PERFORMANCE OF THIS SOFTWARE.
4
24
* Copyright © 2003 Keith Packard
124
144
compCheckRedirect (WindowPtr pWin)
126
146
CompWindowPtr cw = GetCompWindow (pWin);
147
CompScreenPtr cs = GetCompScreen(pWin->drawable.pScreen);
129
150
should = pWin->realized && (pWin->drawable.class != InputOnly) &&
153
/* Never redirect the overlay window */
154
if (cs->pOverlayWin != NULL) {
155
if (pWin == cs->pOverlayWin) {
132
160
if (should != pWin->redirectDraw)
786
CompositeRealChildHead (WindowPtr pWin)
788
WindowPtr pChild, pChildBefore;
792
(screenIsSaved == SCREEN_SAVER_ON) &&
793
(HasSaverWindow (pWin->drawable.pScreen->myNum))) {
795
/* First child is the screen saver; see if next child is the overlay */
796
pChildBefore = pWin->firstChild;
797
pChild = pChildBefore->nextSib;
800
pChildBefore = NullWindow;
801
pChild = pWin->firstChild;
808
cs = GetCompScreen(pWin->drawable.pScreen);
809
if (pChild == cs->pOverlayWin) {