From 92fef6a3a6851ee123dd793788aac50c0831a964 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 16 Feb 2011 15:23:12 +0000 Subject: Solved possible crash because the pixmap buffer was not correct anymore after moving a window --- xorg-server/hw/xwin/winmultiwindowwindow.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xorg-server/hw/xwin/winmultiwindowwindow.c') 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; } -- cgit v1.2.3