xorg: wrap window functions
This commit is contained in:
parent
60b0529656
commit
af1b96b3d2
@ -128,6 +128,11 @@ struct _rdpScreenInfoRec
|
|||||||
/* Window Procedures */
|
/* Window Procedures */
|
||||||
CreateWindowProcPtr CreateWindow;
|
CreateWindowProcPtr CreateWindow;
|
||||||
DestroyWindowProcPtr DestroyWindow;
|
DestroyWindowProcPtr DestroyWindow;
|
||||||
|
PositionWindowProcPtr PositionWindow;
|
||||||
|
RealizeWindowProcPtr RealizeWindow;
|
||||||
|
UnrealizeWindowProcPtr UnrealizeWindow;
|
||||||
|
ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
||||||
|
WindowExposuresProcPtr WindowExposures;
|
||||||
|
|
||||||
CreateColormapProcPtr CreateColormap;
|
CreateColormapProcPtr CreateColormap;
|
||||||
DestroyColormapProcPtr DestroyColormap;
|
DestroyColormapProcPtr DestroyColormap;
|
||||||
@ -252,6 +257,16 @@ Bool
|
|||||||
rdpCreateWindow(WindowPtr pWindow);
|
rdpCreateWindow(WindowPtr pWindow);
|
||||||
Bool
|
Bool
|
||||||
rdpDestroyWindow(WindowPtr pWindow);
|
rdpDestroyWindow(WindowPtr pWindow);
|
||||||
|
Bool
|
||||||
|
rdpPositionWindow(WindowPtr pWindow, int x, int y);
|
||||||
|
Bool
|
||||||
|
rdpRealizeWindow(WindowPtr pWindow);
|
||||||
|
Bool
|
||||||
|
rdpUnrealizeWindow(WindowPtr pWindow);
|
||||||
|
Bool
|
||||||
|
rdpChangeWindowAttributes(WindowPtr pWindow, unsigned long mask);
|
||||||
|
void
|
||||||
|
rdpWindowExposures(WindowPtr pWindow, RegionPtr pRegion, RegionPtr pBSRegion);
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
rdpCreateGC(GCPtr pGC);
|
rdpCreateGC(GCPtr pGC);
|
||||||
|
@ -452,7 +452,7 @@ rdpCreateWindow(WindowPtr pWindow)
|
|||||||
rdpWindowRec* priv;
|
rdpWindowRec* priv;
|
||||||
Bool rv;
|
Bool rv;
|
||||||
|
|
||||||
//ErrorF("rdpCreateWindow:\n");
|
ErrorF("rdpCreateWindow:\n");
|
||||||
priv = GETWINPRIV(pWindow);
|
priv = GETWINPRIV(pWindow);
|
||||||
//ErrorF(" %p status %d\n", priv, priv->status);
|
//ErrorF(" %p status %d\n", priv, priv->status);
|
||||||
pScreen = pWindow->drawable.pScreen;
|
pScreen = pWindow->drawable.pScreen;
|
||||||
@ -470,7 +470,7 @@ rdpDestroyWindow(WindowPtr pWindow)
|
|||||||
rdpWindowRec* priv;
|
rdpWindowRec* priv;
|
||||||
Bool rv;
|
Bool rv;
|
||||||
|
|
||||||
//ErrorF("rdpDestroyWindow:\n");
|
ErrorF("rdpDestroyWindow:\n");
|
||||||
priv = GETWINPRIV(pWindow);
|
priv = GETWINPRIV(pWindow);
|
||||||
pScreen = pWindow->drawable.pScreen;
|
pScreen = pWindow->drawable.pScreen;
|
||||||
pScreen->DestroyWindow = g_rdpScreen.DestroyWindow;
|
pScreen->DestroyWindow = g_rdpScreen.DestroyWindow;
|
||||||
@ -479,6 +479,89 @@ rdpDestroyWindow(WindowPtr pWindow)
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
Bool
|
||||||
|
rdpPositionWindow(WindowPtr pWindow, int x, int y)
|
||||||
|
{
|
||||||
|
ScreenPtr pScreen;
|
||||||
|
rdpWindowRec* priv;
|
||||||
|
Bool rv;
|
||||||
|
|
||||||
|
ErrorF("rdpPositionWindow:\n");
|
||||||
|
priv = GETWINPRIV(pWindow);
|
||||||
|
pScreen = pWindow->drawable.pScreen;
|
||||||
|
pScreen->PositionWindow = g_rdpScreen.PositionWindow;
|
||||||
|
rv = pScreen->PositionWindow(pWindow, x, y);
|
||||||
|
pScreen->PositionWindow = rdpPositionWindow;
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
Bool
|
||||||
|
rdpRealizeWindow(WindowPtr pWindow)
|
||||||
|
{
|
||||||
|
ScreenPtr pScreen;
|
||||||
|
rdpWindowRec* priv;
|
||||||
|
Bool rv;
|
||||||
|
|
||||||
|
ErrorF("rdpRealizeWindow:\n");
|
||||||
|
priv = GETWINPRIV(pWindow);
|
||||||
|
pScreen = pWindow->drawable.pScreen;
|
||||||
|
pScreen->RealizeWindow = g_rdpScreen.RealizeWindow;
|
||||||
|
rv = pScreen->RealizeWindow(pWindow);
|
||||||
|
pScreen->RealizeWindow = rdpRealizeWindow;
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
Bool
|
||||||
|
rdpUnrealizeWindow(WindowPtr pWindow)
|
||||||
|
{
|
||||||
|
ScreenPtr pScreen;
|
||||||
|
rdpWindowRec* priv;
|
||||||
|
Bool rv;
|
||||||
|
|
||||||
|
ErrorF("rdpUnrealizeWindow:\n");
|
||||||
|
priv = GETWINPRIV(pWindow);
|
||||||
|
pScreen = pWindow->drawable.pScreen;
|
||||||
|
pScreen->UnrealizeWindow = g_rdpScreen.UnrealizeWindow;
|
||||||
|
rv = pScreen->UnrealizeWindow(pWindow);
|
||||||
|
pScreen->UnrealizeWindow = rdpUnrealizeWindow;
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
Bool
|
||||||
|
rdpChangeWindowAttributes(WindowPtr pWindow, unsigned long mask)
|
||||||
|
{
|
||||||
|
ScreenPtr pScreen;
|
||||||
|
rdpWindowRec* priv;
|
||||||
|
Bool rv;
|
||||||
|
|
||||||
|
ErrorF("rdpChangeWindowAttributes:\n");
|
||||||
|
priv = GETWINPRIV(pWindow);
|
||||||
|
pScreen = pWindow->drawable.pScreen;
|
||||||
|
pScreen->ChangeWindowAttributes = g_rdpScreen.ChangeWindowAttributes;
|
||||||
|
rv = pScreen->ChangeWindowAttributes(pWindow, mask);
|
||||||
|
pScreen->ChangeWindowAttributes = rdpChangeWindowAttributes;
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
void
|
||||||
|
rdpWindowExposures(WindowPtr pWindow, RegionPtr pRegion, RegionPtr pBSRegion)
|
||||||
|
{
|
||||||
|
ScreenPtr pScreen;
|
||||||
|
rdpWindowRec* priv;
|
||||||
|
|
||||||
|
ErrorF("rdpWindowExposures:\n");
|
||||||
|
priv = GETWINPRIV(pWindow);
|
||||||
|
pScreen = pWindow->drawable.pScreen;
|
||||||
|
pScreen->WindowExposures = g_rdpScreen.WindowExposures;
|
||||||
|
pScreen->WindowExposures(pWindow, pRegion, pBSRegion);
|
||||||
|
pScreen->WindowExposures = rdpWindowExposures;
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
Bool
|
Bool
|
||||||
rdpCreateGC(GCPtr pGC)
|
rdpCreateGC(GCPtr pGC)
|
||||||
|
@ -347,6 +347,11 @@ rdpScreenInit(int index, ScreenPtr pScreen, int argc, char** argv)
|
|||||||
/* Window Procedures */
|
/* Window Procedures */
|
||||||
g_rdpScreen.CreateWindow = pScreen->CreateWindow;
|
g_rdpScreen.CreateWindow = pScreen->CreateWindow;
|
||||||
g_rdpScreen.DestroyWindow = pScreen->DestroyWindow;
|
g_rdpScreen.DestroyWindow = pScreen->DestroyWindow;
|
||||||
|
g_rdpScreen.ChangeWindowAttributes = pScreen->ChangeWindowAttributes;
|
||||||
|
g_rdpScreen.RealizeWindow = pScreen->RealizeWindow;
|
||||||
|
g_rdpScreen.UnrealizeWindow = pScreen->UnrealizeWindow;
|
||||||
|
g_rdpScreen.PositionWindow = pScreen->PositionWindow;
|
||||||
|
g_rdpScreen.WindowExposures = pScreen->WindowExposures;
|
||||||
g_rdpScreen.CopyWindow = pScreen->CopyWindow;
|
g_rdpScreen.CopyWindow = pScreen->CopyWindow;
|
||||||
g_rdpScreen.ClearToBackground = pScreen->ClearToBackground;
|
g_rdpScreen.ClearToBackground = pScreen->ClearToBackground;
|
||||||
|
|
||||||
@ -390,6 +395,11 @@ rdpScreenInit(int index, ScreenPtr pScreen, int argc, char** argv)
|
|||||||
/* Window Procedures */
|
/* Window Procedures */
|
||||||
pScreen->CreateWindow = rdpCreateWindow;
|
pScreen->CreateWindow = rdpCreateWindow;
|
||||||
pScreen->DestroyWindow = rdpDestroyWindow;
|
pScreen->DestroyWindow = rdpDestroyWindow;
|
||||||
|
pScreen->ChangeWindowAttributes = rdpChangeWindowAttributes;
|
||||||
|
pScreen->RealizeWindow = rdpRealizeWindow;
|
||||||
|
pScreen->UnrealizeWindow = rdpUnrealizeWindow;
|
||||||
|
pScreen->PositionWindow = rdpPositionWindow;
|
||||||
|
pScreen->WindowExposures = rdpWindowExposures;
|
||||||
}
|
}
|
||||||
|
|
||||||
pScreen->CopyWindow = rdpCopyWindow;
|
pScreen->CopyWindow = rdpCopyWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user