mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 09:00:05 +01:00
No need to configure back-end server window in CopyWindow. This
should all be taken care of in dmxPositionWindow.
This commit is contained in:
parent
2bf83e521a
commit
40cf9d64ee
1 changed files with 1 additions and 18 deletions
|
|
@ -884,11 +884,7 @@ void dmxRestackWindow(WindowPtr pWindow, WindowPtr pOldNextSib)
|
|||
* lazy window creation optimization is enabled. */
|
||||
void dmxCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||
{
|
||||
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
||||
DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
|
||||
dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV(pWindow);
|
||||
unsigned int m;
|
||||
XWindowChanges c;
|
||||
dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV(pWindow);
|
||||
|
||||
/* Determine if the window is completely off the visible portion of
|
||||
the screen */
|
||||
|
|
@ -898,19 +894,6 @@ void dmxCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
|||
been created yet, create it and map it */
|
||||
if (!pWinPriv->window && pWinPriv->mapped && !pWinPriv->offscreen) {
|
||||
dmxCreateAndRealizeWindow(pWindow, TRUE);
|
||||
} else if (pWinPriv->window) {
|
||||
/* Move window on back-end server */
|
||||
m = CWX | CWY | CWWidth | CWHeight;
|
||||
c.x = pWindow->origin.x - wBorderWidth(pWindow);
|
||||
c.y = pWindow->origin.y - wBorderWidth(pWindow);
|
||||
c.width = pWindow->drawable.width;
|
||||
c.height = pWindow->drawable.height;
|
||||
|
||||
XLIB_PROLOGUE (dmxScreen);
|
||||
dmxSetIgnore (dmxScreen, NextRequest (dmxScreen->beDisplay));
|
||||
XConfigureWindow(dmxScreen->beDisplay, pWinPriv->window, m, &c);
|
||||
XLIB_EPILOGUE (dmxScreen);
|
||||
dmxSync(dmxScreen, False);
|
||||
}
|
||||
|
||||
dmxUpdateWindowInfo(DMX_UPDATE_COPY, pWindow);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue