mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 03:30:04 +01:00
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>
(cherry picked from commit 25d26875bc)
This commit is contained in:
parent
9422321b37
commit
01aac1f533
1 changed files with 6 additions and 0 deletions
|
|
@ -68,6 +68,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"
|
||||||
|
|
@ -384,6 +385,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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue