Bug 735598 - Check for MOZ_X11 before using X11 Window types. r=karlt

This commit is contained in:
Oleg Romashin 2012-03-14 13:24:20 +01:00
parent 76ff80d894
commit c5f2dd2c8a

View File

@ -748,7 +748,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::GetNetscapeWindow(void *value)
}
return rv;
#elif defined(MOZ_WIDGET_GTK2) || defined(MOZ_WIDGET_QT)
#elif (defined(MOZ_WIDGET_GTK2) || defined(MOZ_WIDGET_QT)) && defined(MOZ_X11)
// X11 window managers want the toplevel window for WM_TRANSIENT_FOR.
nsIWidget* win = mObjectFrame->GetNearestWidget();
if (!win)