bug 1180008 don't measure size of decorations for override-redirect windows r=acomminos

This commit is contained in:
Karl Tomlinson 2015-04-21 19:52:00 +12:00
parent d58cb92f31
commit 1e2afaf964

View File

@ -1520,7 +1520,8 @@ nsWindow::GetClientOffset()
{
PROFILER_LABEL("nsWindow", "GetClientOffset", js::ProfileEntry::Category::GRAPHICS);
if (!mIsTopLevel || !mShell || !mGdkWindow) {
if (!mIsTopLevel || !mShell || !mGdkWindow ||
gtk_window_get_window_type(GTK_WINDOW(mShell)) == GTK_WINDOW_POPUP) {
return nsIntPoint(0, 0);
}