зеркало из https://github.com/mozilla/gecko-dev.git
Enable full-screen mode for unix. Bug 126685, r=blizzard, sr=sfraser, a=asa.
This commit is contained in:
Родитель
10ca31b470
Коммит
c70e68e62c
|
@ -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>
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче