XQuartz: Avoid a possible deadlock with DRI on OS X 10.7.5 and OS X 10.8.2
<rdar://problem/12338921> http://bugs.winehq.org/show_bug.cgi?id=31751 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
#include "mi.h"
|
#include "mi.h"
|
||||||
#include "mipointer.h"
|
#include "mipointer.h"
|
||||||
#include "rootless.h"
|
#include "rootless.h"
|
||||||
|
#include "rootlessCommon.h"
|
||||||
#include "x-hash.h"
|
#include "x-hash.h"
|
||||||
#include "x-hook.h"
|
#include "x-hook.h"
|
||||||
#include "driWrap.h"
|
#include "driWrap.h"
|
||||||
@@ -380,6 +381,11 @@ DRICreateSurface(ScreenPtr pScreen, Drawable id,
|
|||||||
DRIDrawablePrivPtr pDRIDrawablePriv;
|
DRIDrawablePrivPtr pDRIDrawablePriv;
|
||||||
|
|
||||||
if (pDrawable->type == DRAWABLE_WINDOW) {
|
if (pDrawable->type == DRAWABLE_WINDOW) {
|
||||||
|
/* <rdar://problem/12338921>
|
||||||
|
* http://bugs.winehq.org/show_bug.cgi?id=31751
|
||||||
|
*/
|
||||||
|
RootlessStopDrawing((WindowPtr)pDrawable, FALSE);
|
||||||
|
|
||||||
pDRIDrawablePriv = CreateSurfaceForWindow(pScreen,
|
pDRIDrawablePriv = CreateSurfaceForWindow(pScreen,
|
||||||
(WindowPtr)pDrawable, &wid);
|
(WindowPtr)pDrawable, &wid);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user