summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/osx/salframe.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 31159f8545c0..d4debf4ef09a 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -92,6 +92,9 @@ AquaSalFrame::AquaSalFrame( SalFrame* pParent, SalFrameStyleFlags salFrameStyle
AquaSalFrame::~AquaSalFrame()
{
+ if (mbFullScreen)
+ ShowFullScreen(false, maGeometry.nDisplayScreenNumber);
+
assert( GetSalData()->mpInstance->IsMainThread() );
// if the frame is destroyed and has the current menubar