mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1750017 [Linux] Don't set shape mask to released drawable, r=lsalzman
Don't clear shape mask with XShapeCombineMask(), it's not needed and target darawable may be already deleted. Differential Revision: https://phabricator.services.mozilla.com/D136149
This commit is contained in:
parent
1237aba347
commit
ca729fdef1
@ -40,12 +40,6 @@ WindowSurfaceX11Image::WindowSurfaceX11Image(Display* aDisplay, Window aWindow,
|
||||
WindowSurfaceX11Image::~WindowSurfaceX11Image() {
|
||||
if (mTransparencyBitmap) {
|
||||
delete[] mTransparencyBitmap;
|
||||
|
||||
Display* xDisplay = mWindowSurface->XDisplay();
|
||||
Window xDrawable = mWindowSurface->XDrawable();
|
||||
|
||||
XShapeCombineMask(xDisplay, xDrawable, ShapeBounding, 0, 0, X11None,
|
||||
ShapeSet);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user