diff options
author | marha <marha@users.sourceforge.net> | 2011-02-16 15:23:12 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-16 15:23:12 +0000 |
commit | 92fef6a3a6851ee123dd793788aac50c0831a964 (patch) | |
tree | 10e6f218fa1df3078655cd60267672d4fa0ffc37 | |
parent | d9e2d392319a4807b8a79392ae9c8fd9ca26de9a (diff) | |
download | vcxsrv-92fef6a3a6851ee123dd793788aac50c0831a964.tar.gz vcxsrv-92fef6a3a6851ee123dd793788aac50c0831a964.tar.bz2 vcxsrv-92fef6a3a6851ee123dd793788aac50c0831a964.zip |
Solved possible crash because the pixmap buffer was not correct anymore after moving a window
-rw-r--r-- | xorg-server/hw/xwin/winmultiwindowwindow.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winmultiwindowwindow.c b/xorg-server/hw/xwin/winmultiwindowwindow.c index b89073fc9..1e95fecc4 100644 --- a/xorg-server/hw/xwin/winmultiwindowwindow.c +++ b/xorg-server/hw/xwin/winmultiwindowwindow.c @@ -186,6 +186,11 @@ winPositionWindowMultiWindow (WindowPtr pWin, int x, int y) if (!hWnd)
{
winDebug ("\timmediately return since hWnd is NULL\n");
+ if (pWin->redirectDraw != RedirectDrawNone)
+ {
+ winDebug("winPositionWindowMultiWindow: Calling compReallocPixmap to make sure the pixmap buffer is valid.\n");
+ compReallocPixmap(pWin, x, y, pWin->drawable.width, pWin->drawable.height, pWin->borderWidth);
+ }
return fResult;
}
|