Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 170348 Details for
Bug 216621
compiz-fusion-0.7.4 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
compiz-0.7.4-damage-report-non-empty.patch
compiz-0.7.4-damage-report-non-empty.patch (text/plain), 2.33 KB, created by
Angelo Arrifano (RETIRED)
on 2008-10-30 20:43:03 UTC
(
hide
)
Description:
compiz-0.7.4-damage-report-non-empty.patch
Filename:
MIME Type:
Creator:
Angelo Arrifano (RETIRED)
Created:
2008-10-30 20:43:03 UTC
Size:
2.33 KB
patch
obsolete
>--- src/event.c.orig 2008-10-30 20:16:20.086645120 +0000 >+++ src/event.c 2008-10-30 20:20:30.176642120 +0000 >@@ -2209,41 +2209,51 @@ handleEvent (CompDisplay *d, > > if (w) > { >+ XserverRegion parts = XFixesCreateRegion(de->display, NULL, 0); >+ XRectangle *rects; >+ int nRects; >+ > w->texture->oldMipmaps = TRUE; > >+ // Get the damage region >+ XDamageSubtract(de->display, de->damage, None, parts); >+ rects = XFixesFetchRegion(de->display, parts, &nRects); >+ XFixesDestroyRegion(de->display, parts); >+ > if (w->syncWait) > { >- if (w->nDamage == w->sizeDamage) >+ int i; >+ >+ if (w->nDamage + nRects - 1 >= w->sizeDamage) > { >- if (w->damageRects) >- { >- w->damageRects = realloc (w->damageRects, >- (w->sizeDamage + 1) * >+ w->damageRects = realloc (w->damageRects, >+ (w->sizeDamage + nRects) * > sizeof (XRectangle)); >- w->sizeDamage += 1; >- } >- else >- { >- w->damageRects = malloc (sizeof (XRectangle)); >- w->sizeDamage = 1; >- } >+ w->sizeDamage += nRects; > } > >- w->damageRects[w->nDamage].x = de->area.x; >- w->damageRects[w->nDamage].y = de->area.y; >- w->damageRects[w->nDamage].width = de->area.width; >- w->damageRects[w->nDamage].height = de->area.height; >- w->nDamage++; >+ for (i = 0; i < nRects; i++) >+ { >+ w->damageRects[w->nDamage] = rects[i]; >+ w->nDamage++; >+ } > } > else > { >- handleWindowDamageRect (w, >- de->area.x, >- de->area.y, >- de->area.width, >- de->area.height); >+ int i; >+ >+ for (i = 0; i < nRects; i++) >+ { >+ handleWindowDamageRect (w, >+ rects[i].x, >+ rects[i].y, >+ rects[i].width, >+ rects[i].height); >+ } > } >+ free(rects); > } >+ > } > else if (d->shapeExtension && > event->type == d->shapeEvent + ShapeNotify) >--- src/window.c.orig 2008-10-30 20:16:23.446645600 +0000 >+++ src/window.c 2008-10-30 20:17:22.396646080 +0000 >@@ -2112,7 +2112,7 @@ addWindow (CompScreen *screen, > XUnionRegion (&rect, w->region, w->region); > > w->damage = XDamageCreate (screen->display->display, id, >- XDamageReportRawRectangles); >+ XDamageReportNonEmpty); > > /* need to check for DisplayModal state on all windows */ > w->state = getWindowState (screen->display, w->id);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 216621
:
148902
|
148904
|
148905
|
148907
|
148909
|
148912
|
148914
|
148916
|
148918
|
148919
|
148920
|
148921
|
148923
|
148929
|
148941
|
149035
|
149037
|
149038
|
149141
|
149143
|
149144
|
149146
|
149148
|
149150
|
149152
|
149154
|
149156
|
149158
|
149160
|
149162
|
149164
|
149165
|
149167
|
149238
|
149239
|
149240
|
149242
|
149245
| 170348