From 4f155baeb3dd97b07ceb6e1bdd113232c974767c Mon Sep 17 00:00:00 2001 From: Philipp Hartwig Date: Mon, 6 Feb 2012 18:17:32 +0000 Subject: [PATCH] Bug 512529 - Prefer GDK_WINDOW_STATE_FULLSCREEN over GDK_WINDOW_STATE_MAXIMIZED; r=karlt --- widget/gtk2/nsWindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/widget/gtk2/nsWindow.cpp b/widget/gtk2/nsWindow.cpp index ef415330b7c..b3c22704ae0 100644 --- a/widget/gtk2/nsWindow.cpp +++ b/widget/gtk2/nsWindow.cpp @@ -3404,6 +3404,11 @@ nsWindow::OnWindowStateEvent(GtkWidget *aWidget, GdkEventWindowState *aEvent) DispatchMinimizeEventAccessible(); #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) { LOG(("\tMaximized\n")); event.mSizeMode = nsSizeMode_Maximized; @@ -3412,11 +3417,6 @@ nsWindow::OnWindowStateEvent(GtkWidget *aWidget, GdkEventWindowState *aEvent) DispatchMaximizeEventAccessible(); #endif //ACCESSIBILITY } - else if (aEvent->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) { - LOG(("\tFullscreen\n")); - event.mSizeMode = nsSizeMode_Fullscreen; - mSizeState = nsSizeMode_Fullscreen; - } else { LOG(("\tNormal\n")); event.mSizeMode = nsSizeMode_Normal;