Bug 512529 - Prefer GDK_WINDOW_STATE_FULLSCREEN over GDK_WINDOW_STATE_MAXIMIZED; r=karlt

This commit is contained in:
Philipp Hartwig 2012-02-06 18:17:32 +00:00
parent 8b76d285cd
commit 4f155baeb3

View File

@ -3404,6 +3404,11 @@ nsWindow::OnWindowStateEvent(GtkWidget *aWidget, GdkEventWindowState *aEvent)
DispatchMinimizeEventAccessible(); DispatchMinimizeEventAccessible();
#endif //ACCESSIBILITY #endif //ACCESSIBILITY
} }
else if (aEvent->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) {
LOG(("\tFullscreen\n"));
event.mSizeMode = nsSizeMode_Fullscreen;
mSizeState = nsSizeMode_Fullscreen;
}
else if (aEvent->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) { else if (aEvent->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) {
LOG(("\tMaximized\n")); LOG(("\tMaximized\n"));
event.mSizeMode = nsSizeMode_Maximized; event.mSizeMode = nsSizeMode_Maximized;
@ -3412,11 +3417,6 @@ nsWindow::OnWindowStateEvent(GtkWidget *aWidget, GdkEventWindowState *aEvent)
DispatchMaximizeEventAccessible(); DispatchMaximizeEventAccessible();
#endif //ACCESSIBILITY #endif //ACCESSIBILITY
} }
else if (aEvent->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) {
LOG(("\tFullscreen\n"));
event.mSizeMode = nsSizeMode_Fullscreen;
mSizeState = nsSizeMode_Fullscreen;
}
else { else {
LOG(("\tNormal\n")); LOG(("\tNormal\n"));
event.mSizeMode = nsSizeMode_Normal; event.mSizeMode = nsSizeMode_Normal;