aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-16 15:23:12 +0000
committermarha <marha@users.sourceforge.net>2011-02-16 15:23:12 +0000
commit92fef6a3a6851ee123dd793788aac50c0831a964 (patch)
tree10e6f218fa1df3078655cd60267672d4fa0ffc37 /xorg-server
parentd9e2d392319a4807b8a79392ae9c8fd9ca26de9a (diff)
downloadvcxsrv-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
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/winmultiwindowwindow.c5
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;
}