composite: use 'bool' instead of 'Bool' in CompClientWindowRec

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2026-10-13 15:43:45 +02:00 • committed by Enrico Weigelt
commit 4a30260387
2 changed files with 14 additions and 13 deletions

View file

@ -89,7 +89,7 @@ compReportDamage(DamagePtr pDamage, RegionPtr pRegion, void *closure)
QueueWorkProc(compScreenUpdate, serverClient, pScreen);
cs->pendingScreenUpdate = true;
}
cw->damaged = TRUE;
cw->damaged = false;
compMarkAncestors(pWin);
}
@ -100,9 +100,9 @@ compDestroyDamage(DamagePtr pDamage, void *closure)
WindowPtr pWin = (WindowPtr) closure;
CompWindowPtr cw = GetCompWindow(pWin);
cw->damage = 0;
cw->damaged = 0;
cw->damageRegistered = 0;
cw->damage = NULL;
cw->damaged = false;
cw->damageRegistered = false;
}
static bool compMarkWindows(WindowPtr pWin, WindowPtr *ppLayerWin)
@ -198,8 +198,8 @@ compRedirectWindow(ClientPtr pClient, WindowPtr pWin, int update)
cw->clients = 0;
cw->oldx = COMP_ORIGIN_INVALID;
cw->oldy = COMP_ORIGIN_INVALID;
cw->damageRegistered = FALSE;
cw->damaged = FALSE;
cw->damageRegistered = false;
cw->damaged = false;
cw->pOldPixmap = NullPixmap;
dixSetPrivate(&pWin->devPrivates, CompWindowPrivateKey, cw);
}
@ -213,7 +213,7 @@ compRedirectWindow(ClientPtr pClient, WindowPtr pWin, int update)
if (cw->damageRegistered) {
DamageUnregister(cw->damage);
cw->damageRegistered = FALSE;
cw->damageRegistered = false;
}
cw->update = CompositeRedirectManual;
}
@ -307,7 +307,7 @@ compFreeClientWindow(WindowPtr pWin, XID id)
anyMarked = compMarkWindows(pWin, &pLayerWin);
DamageRegister(&pWin->drawable, cw->damage);
cw->damageRegistered = TRUE;
cw->damageRegistered = true;
pWin->redirectDraw = RedirectDrawAutomatic;
DamageDamageRegion(&pWin->drawable, &pWin->borderSize);
}
@ -636,10 +636,10 @@ bool compAllocPixmap(WindowPtr pWin)
compSetPixmap(pWin, pPixmap, bw);
cw->oldx = COMP_ORIGIN_INVALID;
cw->oldy = COMP_ORIGIN_INVALID;
cw->damageRegistered = FALSE;
cw->damageRegistered = false;
if (cw->update == CompositeRedirectAutomatic) {
DamageRegister(&pWin->drawable, cw->damage);
cw->damageRegistered = TRUE;
cw->damageRegistered = true;
}
status = TRUE;
@ -662,7 +662,7 @@ compSetParentPixmap(WindowPtr pWin)
if (cw->damageRegistered) {
DamageUnregister(cw->damage);
cw->damageRegistered = FALSE;
cw->damageRegistered = false;
DamageEmpty(cw->damage);
}
/*

View file

@ -43,6 +43,7 @@
#ifndef _COMPINT_H_
#define _COMPINT_H_
#include <stdbool.h>
#include <X11/extensions/compositeproto.h>
#include "dix/screen_hooks_priv.h"
@ -77,8 +78,8 @@ typedef struct _CompClientWindow {
typedef struct _CompWindow {
RegionRec borderClip;
DamagePtr damage; /* for automatic update mode */
Bool damageRegistered;
Bool damaged;
bool damageRegistered;
bool damaged;
int update;
CompClientWindowPtr clients;
int oldx;