Enable full-screen mode for unix. Bug 126685, r=blizzard, sr=sfraser, a=asa.

This commit is contained in:
bryner%netscape.com 2002-07-19 00:43:00 +00:00
Родитель 10ca31b470
Коммит c70e68e62c
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -4045,8 +4045,11 @@ NS_IMETHODIMP
nsWindow::HideWindowChrome(PRBool aShouldHide)
{
if (!mShell) {
// This is not a top-level window widget.
return NS_ERROR_FAILURE;
// Pass the request to the toplevel window.
GtkWidget *top_mozarea = GetOwningWidget();
void *data = gtk_object_get_data(GTK_OBJECT(top_mozarea), "nsWindow");
nsWindow *mozAreaWindow = NS_STATIC_CAST(nsWindow *, data);
return mozAreaWindow->HideWindowChrome(aShouldHide);
}
// Sawfish, metacity, and presumably other window managers get

Просмотреть файл

@ -16,8 +16,10 @@
<key key="&goForwardCmd.commandKey;" command="Browser:Forward" modifiers="accel"/>
<key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
</keyset>
<key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
</keyset>
<menuitem id="menuitem_fullScreen" hidden="false"/>
</overlay>