Avoid crash when Cmd+Q is pressed on Skia/OSX port

This commit is contained in:
David Capello 2015-10-07 17:46:04 -03:00
parent 8edb0c0a67
commit 416951f592

View File

@ -94,11 +94,17 @@ bool SkiaWindow::isMaximized() const
gfx::Size SkiaWindow::clientSize() const
{
if (m_impl->closing)
return gfx::Size(0, 0);
return m_impl->window.clientSize;
}
gfx::Size SkiaWindow::restoredSize() const
{
if (m_impl->closing)
return gfx::Size(0, 0);
return m_impl->window.restoredSize;
}