mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 03:58:03 +02: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. */
|
* lazy window creation optimization is enabled. */
|
||||||
void dmxCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
void dmxCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||||
{
|
{
|
||||||
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV(pWindow);
|
||||||
DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
|
|
||||||
dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV(pWindow);
|
|
||||||
unsigned int m;
|
|
||||||
XWindowChanges c;
|
|
||||||
|
|
||||||
/* Determine if the window is completely off the visible portion of
|
/* Determine if the window is completely off the visible portion of
|
||||||
the screen */
|
the screen */
|
||||||
|
|
@ -898,19 +894,6 @@ void dmxCopyWindow(WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||||
been created yet, create it and map it */
|
been created yet, create it and map it */
|
||||||
if (!pWinPriv->window && pWinPriv->mapped && !pWinPriv->offscreen) {
|
if (!pWinPriv->window && pWinPriv->mapped && !pWinPriv->offscreen) {
|
||||||
dmxCreateAndRealizeWindow(pWindow, TRUE);
|
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);
|
dmxUpdateWindowInfo(DMX_UPDATE_COPY, pWindow);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue