Bug 512529 - Listen for changes in GDK_WINDOW_STATE_FULLSCREEN; r=karlt
authorPhilipp Hartwig <ph@phhart.de>
Mon, 06 Feb 2012 18:17:32 +0000
changeset 86251 672b277a4a2c9895bf2a2c4dca9478b97d310d78
parent 86250 fb0267222fc4eddee4b9d6ee4e319928398a0e4f
child 86252 1b0294c7b95219b4138003708c3d33b445afd4c4
push id22008
push userbmo@edmorley.co.uk
push dateTue, 07 Feb 2012 10:32:58 +0000
treeherdermozilla-central@2b61af9d18ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs512529
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 512529 - Listen for changes in GDK_WINDOW_STATE_FULLSCREEN; r=karlt
widget/gtk2/nsWindow.cpp
--- a/widget/gtk2/nsWindow.cpp
+++ b/widget/gtk2/nsWindow.cpp
@@ -3384,20 +3384,22 @@ nsWindow::OnWindowStateEvent(GtkWidget *
             SetHasMappedToplevel(mapped);
         }
         return;
     }
     // else the widget is a shell widget.
 
     nsSizeModeEvent event(true, NS_SIZEMODE, this);
 
-    // We don't care about anything but changes in the maximized/icon
+    // We don't care about anything but changes in the maximized/icon/fullscreen
     // states
     if ((aEvent->changed_mask
-         & (GDK_WINDOW_STATE_ICONIFIED|GDK_WINDOW_STATE_MAXIMIZED)) == 0) {
+         & (GDK_WINDOW_STATE_ICONIFIED |
+            GDK_WINDOW_STATE_MAXIMIZED |
+            GDK_WINDOW_STATE_FULLSCREEN)) == 0) {
         return;
     }
 
     if (aEvent->new_window_state & GDK_WINDOW_STATE_ICONIFIED) {
         LOG(("\tIconified\n"));
         event.mSizeMode = nsSizeMode_Minimized;
         mSizeState = nsSizeMode_Minimized;
 #ifdef ACCESSIBILITY