Skip to content

Commit

Permalink
Bug 1662834 [Linux] Check mGdkWindow validity on nsWindow::UpdateTitl…
Browse files Browse the repository at this point in the history
…ebarTransparencyBitmap(), r=jhorak

Differential Revision: https://phabricator.services.mozilla.com/D90144
  • Loading branch information
stransky committed Sep 16, 2020
1 parent deee76e commit e9149d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions widget/gtk/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5609,8 +5609,9 @@ void nsWindow::UpdateTitlebarTransparencyBitmap() {
NS_ASSERTION(mTransparencyBitmapForTitlebar,
"Transparency bitmap is already used to draw window shape");

if (!mDrawInTitlebar || (mBounds.width == mTransparencyBitmapWidth &&
mBounds.height == mTransparencyBitmapHeight)) {
if (!mGdkWindow || !mDrawInTitlebar ||
(mBounds.width == mTransparencyBitmapWidth &&
mBounds.height == mTransparencyBitmapHeight)) {
return;
}

Expand Down

0 comments on commit e9149d4

Please sign in to comment.