xserver/composite compalloc.c,1.7,1.8
Daniel Stone
xserver-commit at pdx.freedesktop.org
Fri Jun 11 05:39:53 EST 2004
Committed by: daniel
Update of /cvs/xserver/xserver/composite
In directory pdx:/home/daniel/x/debrix/debrix/composite
Modified Files:
compalloc.c
Log Message:
Initial import from modular sources.
Index: compalloc.c
===================================================================
RCS file: /cvs/xserver/xserver/composite/compalloc.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- compalloc.c 20 Nov 2003 03:31:29 -0000 1.7
+++ compalloc.c 10 Jun 2004 19:39:49 -0000 1.8
@@ -57,6 +57,7 @@
CompWindowPtr cw = GetCompWindow (pWin);
CompClientWindowPtr ccw;
Bool wasMapped = pWin->mapped;
+ ScreenPtr pScreen = pWin->drawable.pScreen;
/*
* Only one Manual update is allowed
@@ -87,10 +88,13 @@
xfree (ccw);
return BadAlloc;
}
+ /* XXX DS */
+ ErrorF("compRedirectWindow: pScreen = %d\n", pScreen);
cw->damage = DamageCreate (compReportDamage,
compDestroyDamage,
DamageReportNonEmpty,
FALSE,
+ pScreen,
pWin);
if (!cw->damage)
{
@@ -433,8 +437,8 @@
pPixmap = (*pScreen->CreatePixmap) (pScreen, w, h, pWin->drawable.depth);
if (!pPixmap)
return FALSE;
- pPixmap->screen_x = x;
- pPixmap->screen_y = y;
+ pPixmap->drawable.x = x;
+ pPixmap->drawable.y = y;
pWin->redirectDraw = TRUE;
compSetPixmap (pWin, pPixmap);
cw->oldx = COMP_ORIGIN_INVALID;
More information about the xserver-commit
mailing list