diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index d00045edd34d..aa6400e9060c 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -8760,6 +8760,8 @@ bool nsWindow::IsAlwaysUndecoratedWindow() const { return true; } if (mWindowType == WindowType::Dialog && + mBorderStyle != BorderStyle::Default && + mBorderStyle != BorderStyle::All && !(mBorderStyle & BorderStyle::Title) && !(mBorderStyle & BorderStyle::ResizeH)) { return true;