mi: move ValidateRec to mi_priv.h and rename to MiValidateRec

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-02-10 12:57:00 +01:00
committed by Enrico Weigelt
parent 54c996274f
commit 62b0add858
17 changed files with 21 additions and 67 deletions

View File

@@ -135,7 +135,6 @@ Equipment Corporation.
#include "dixstruct.h"
#include "gcstruct.h"
#include "servermd.h"
#include "mivalidate.h"
#include "globals.h"
#include "compint.h"
#include "privates.h"

View File

@@ -34,7 +34,6 @@
#include "os/osdep.h"
#include "kdrive.h"
#include <mivalidate.h>
#include <dixstruct.h>
#include "privates.h"

View File

@@ -49,7 +49,6 @@ of the copyright holder.
#include "regionstr.h"
#include "windowstr.h"
#include "pixmapstr.h"
#include "mivalidate.h"
#include "validate.h"
#include "resource.h"
#include "gcstruct.h"

View File

@@ -42,7 +42,6 @@ of the copyright holder.
#include "regionstr.h"
#include "windowstr.h"
#include "pixmapstr.h"
#include "mivalidate.h"
#include "validate.h"
#include "resource.h"
#include "gcstruct.h"

View File

@@ -61,7 +61,6 @@
#include "xf86Xinput_priv.h"
#include "xf86InPriv.h"
#include "xf86Config.h"
#include "mivalidate.h"
#include "xf86Module_priv.h"
/* For xf86GetClocks */

View File

@@ -45,7 +45,6 @@
#include "regionstr.h"
#include "windowstr.h"
#include "pixmapstr.h"
#include "mivalidate.h"
#include "validate.h"
#include "resource.h"
#include "gcstruct.h"

View File

@@ -36,7 +36,6 @@
#include "pixmapstr.h"
#include "windowstr.h"
#include "dixfontstr.h"
#include "mivalidate.h"
#include "driWrap.h"
#include "dri.h"

View File

@@ -32,8 +32,8 @@ in this Software without prior written authorization from The Open Group.
typedef enum { VTOther, VTStack, VTMove, VTUnmap, VTMap, VTBroken } VTKind;
/* union _Validate is now device dependent; see mivalidate.h for an example */
typedef union _Validate *ValidatePtr;
/* union _MiValidate is now device dependent; see mivalidate.h for an example */
typedef union _MiValidate *ValidatePtr;
#define UnmapValData ((ValidatePtr)1)

View File

@@ -124,7 +124,7 @@ typedef struct _Window {
WindowPtr lastChild; /* bottom-most child */
RegionRec clipList; /* clipping rectangle for output */
RegionRec borderClip; /* NotClippedByChildren + border */
union _Validate *valdata;
union _MiValidate *valdata;
RegionRec winSize;
RegionRec borderSize;
xPoint origin; /* position relative to parent */

View File

@@ -89,4 +89,17 @@ WindowPtr miXYToWindow(ScreenPtr pScreen, SpritePtr pSprite, int x, int y);
_X_EXPORT /* used by in-tree libwfb.so module */
int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
typedef union _MiValidate {
struct BeforeValidate {
DDXPointRec oldAbsCorner; /* old window position */
RegionPtr borderVisible; /* visible region of border, */
/* non-null when size changes */
Bool resized; /* unclipped winSize has changed */
} before;
struct AfterValidate {
RegionRec exposed; /* exposed regions, absolute pos */
RegionRec borderExposed;
} after;
} MiValidateRec;
#endif /* _XSERVER_MI_PRIV_H */

View File

@@ -18,7 +18,6 @@
#include "gcstruct.h"
#include "regionstr.h"
#include "privates.h"
#include "mivalidate.h"
#include "mioverlay.h"
#include "migc.h"

View File

@@ -1,47 +0,0 @@
/*
Copyright 1993, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall
not be used in advertising or otherwise to promote the sale, use or
other dealings in this Software without prior written authorization
from The Open Group.
*/
#ifndef MIVALIDATE_H
#define MIVALIDATE_H
#include "regionstr.h"
typedef union _Validate {
struct BeforeValidate {
DDXPointRec oldAbsCorner; /* old window position */
RegionPtr borderVisible; /* visible region of border, */
/* non-null when size changes */
Bool resized; /* unclipped winSize has changed */
} before;
struct AfterValidate {
RegionRec exposed; /* exposed regions, absolute pos */
RegionRec borderExposed;
} after;
} ValidateRec;
#endif /* MIVALIDATE_H */

View File

@@ -99,7 +99,6 @@ Equipment Corporation.
#include "validate.h"
#include "windowstr.h"
#include "regionstr.h"
#include "mivalidate.h"
#include "globals.h"
#include "compint.h"

View File

@@ -59,7 +59,6 @@ SOFTWARE.
#include "windowstr.h"
#include "scrnintstr.h"
#include "pixmapstr.h"
#include "mivalidate.h"
#include "inputstr.h"
void
@@ -123,11 +122,13 @@ miClearToBackground(WindowPtr pWin,
void
miMarkWindow(WindowPtr pWin)
{
ValidatePtr val;
if (pWin->valdata)
return;
val = (ValidatePtr) XNFalloc(sizeof(ValidateRec));
ValidatePtr val = (ValidatePtr) calloc(1, sizeof(MiValidateRec));
if (!val)
return;
val->before.oldAbsCorner.x = pWin->drawable.x;
val->before.oldAbsCorner.y = pWin->drawable.y;
val->before.borderVisible = NullRegion;

View File

@@ -38,7 +38,6 @@
#include "pixmapstr.h"
#include "windowstr.h"
#include "dixfontstr.h"
#include "mivalidate.h"
#include "fb.h"
#include <sys/types.h>

View File

@@ -46,7 +46,6 @@
#include "pixmapstr.h"
#include "windowstr.h"
#include "propertyst.h"
#include "mivalidate.h"
#include "picturestr.h"
#include "rootlessCommon.h"

View File

@@ -101,8 +101,6 @@ Equipment Corporation.
#include "validate.h"
#include "windowstr.h"
#include "regionstr.h"
#include "mivalidate.h"
#include "globals.h"
int RootlessMiValidateTree(WindowPtr pRoot, WindowPtr pChild, VTKind kind);