~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to composite/compwindow.c

Tags: 2:1.10.1-2
* Build xserver-xorg-core-udeb on hurd-i386.  Thanks, Samuel Thibault!
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright © 2006 Sun Microsystems, Inc.  All rights reserved.
 
2
 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
3
3
 *
4
4
 * Permission is hereby granted, free of charge, to any person obtaining a
5
5
 * copy of this software and associated documentation files (the "Software"),
47
47
 
48
48
#include "compint.h"
49
49
 
 
50
#ifdef PANORAMIX
 
51
#include "panoramiXsrv.h"
 
52
#endif
 
53
 
50
54
#ifdef COMPOSITE_DEBUG
51
55
static int
52
56
compCheckWindow (WindowPtr pWin, pointer data)
172
176
        CompScreenPtr cs;
173
177
        WindowPtr pWin; /* overlay window */
174
178
        XID vlist[2];
 
179
        int w = pScreen->width;
 
180
        int h = pScreen->height;
 
181
 
 
182
#ifdef PANORAMIX
 
183
        if (!noPanoramiXExtension)
 
184
        {
 
185
            w = PanoramiXPixWidth;
 
186
            h = PanoramiXPixHeight;
 
187
        }
 
188
#endif
175
189
 
176
190
        cs = GetCompScreen(pScreen);
177
191
        if ((pWin = cs->pOverlayWin) != NULL) {
178
 
                if ((pWin->drawable.width == pScreen->width) &&
179
 
                        (pWin->drawable.height == pScreen->height))
 
192
                if ((pWin->drawable.width == w) &&
 
193
                        (pWin->drawable.height == h))
180
194
                        return Success;
181
195
 
182
196
                /* Let's resize the overlay window. */
183
 
                vlist[0] = pScreen->width;
184
 
                vlist[1] = pScreen->height;
 
197
                vlist[0] = w;
 
198
                vlist[1] = h;
185
199
                return ConfigureWindow(pWin, CWWidth | CWHeight, vlist, wClient(pWin));
186
200
        }
187
201
 
706
720
    DamageEmpty (cw->damage);
707
721
}
708
722
 
709
 
void
710
 
compWindowUpdate (WindowPtr pWin)
 
723
static void
 
724
compPaintWindowToParent (WindowPtr pWin)
711
725
{
712
 
    WindowPtr   pChild;
 
726
    compPaintChildrenToWindow (pWin);
713
727
 
714
 
    for (pChild = pWin->lastChild; pChild; pChild = pChild->prevSib)
715
 
        compWindowUpdate (pChild);
716
728
    if (pWin->redirectDraw != RedirectDrawNone)
717
729
    {
718
730
        CompWindowPtr   cw = GetCompWindow(pWin);
725
737
    }
726
738
}
727
739
 
 
740
void
 
741
compPaintChildrenToWindow (WindowPtr pWin)
 
742
{
 
743
    WindowPtr pChild;
 
744
 
 
745
    if (!pWin->damagedDescendants)
 
746
        return;
 
747
 
 
748
    for (pChild = pWin->lastChild; pChild; pChild = pChild->prevSib)
 
749
        compPaintWindowToParent (pChild);
 
750
 
 
751
    pWin->damagedDescendants = FALSE;
 
752
}
 
753
 
728
754
WindowPtr
729
755
CompositeRealChildHead (WindowPtr pWin)
730
756
{