]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/toplevel.cpp
don't reserve space in the header for the column image if there is none (patch 1225522)
[wxWidgets.git] / src / gtk1 / toplevel.cpp
index 312f2ce56d1194fd6bc0a2ee88e5ee0c80b43a94..dc78d711d0f47c3c87eff44bc740354a7b1ba2b5 100644 (file)
@@ -690,8 +690,6 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
             gtk_window_fullscreen( GTK_WINDOW( m_widget ) );
         else
             gtk_window_unfullscreen( GTK_WINDOW( m_widget ) );
-
-        return true;
     }
     else
 #endif // GTK+ >= 2.2.0
@@ -732,7 +730,7 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
                                     (WXWindow)GDK_WINDOW_XWINDOW(window),
                                     show, &m_fsSaveFrame, method);
         }
-        else
+        else // hide
         {
             if (method != wxX11_FS_WMSPEC)
             {
@@ -753,6 +751,11 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
         }
     }
 
+    // documented behaviour is to show the window if it's still hidden when
+    // showing it full screen
+    if ( show && !IsShown() )
+        Show();
+
     return true;
 }