mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 16:00:08 +01:00
XQuartz: xpr: Don't FatalError if xp_unlock_window fails
We added the FatalError in5d1d9d9ae3but it caused a regression http://xquartz.macosforge.org/trac/ticket/482 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commita1bb5062c7)
This commit is contained in:
parent
d97501fffc
commit
4fdc6706ca
1 changed files with 6 additions and 3 deletions
|
|
@ -217,7 +217,7 @@ xprDestroyFrame(RootlessFrameID wid)
|
|||
|
||||
err = xp_destroy_window(x_cvt_vptr_to_uint(wid));
|
||||
if (err != Success)
|
||||
FatalError("Could not destroy window %i.", (int)x_cvt_vptr_to_uint(wid));
|
||||
FatalError("Could not destroy window %d (%d).", (int)x_cvt_vptr_to_uint(wid), (int)err);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -360,7 +360,7 @@ xprStartDrawing(RootlessFrameID wid, char **pixelData, int *bytesPerRow)
|
|||
|
||||
err = xp_lock_window(x_cvt_vptr_to_uint(wid), NULL, NULL, data, rowbytes, NULL);
|
||||
if (err != Success)
|
||||
FatalError("Could not lock window %i for drawing.", (int)x_cvt_vptr_to_uint(wid));
|
||||
FatalError("Could not lock window %d for drawing (%d).", (int)x_cvt_vptr_to_uint(wid), (int)err);
|
||||
|
||||
*pixelData = data[0];
|
||||
*bytesPerRow = rowbytes[0];
|
||||
|
|
@ -377,8 +377,11 @@ xprStopDrawing(RootlessFrameID wid, Bool flush)
|
|||
TA_SERVER();
|
||||
|
||||
err = xp_unlock_window(x_cvt_vptr_to_uint(wid), flush);
|
||||
/* This should be a FatalError, but we started tripping over it. Make it a
|
||||
* FatalError after http://xquartz.macosforge.org/trac/ticket/482 is fixed.
|
||||
*/
|
||||
if(err != Success)
|
||||
FatalError("Could not unlock window %i after drawing.", (int)x_cvt_vptr_to_uint(wid));
|
||||
ErrorF("Could not unlock window %d after drawing (%d).", (int)x_cvt_vptr_to_uint(wid), (int)err);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue