Bug 476705 - touch up patch for window state problem.
authorJim Mathies <jmathies@mozilla.com>
Mon, 09 Feb 2009 15:39:55 -0600
changeset 24799 d5f1c222aa28cab55684dc00af603f6290c61925
parent 24798 dcb3845d3134ae93f4e5cc5d7bb9f7396eafc3c7
child 24800 89ffe60a58ba7b16e4c5bc55be8fbbad33606794
push idunknown
push userunknown
push dateunknown
bugs476705
milestone1.9.2a1pre
Bug 476705 - touch up patch for window state problem.
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -1768,21 +1768,23 @@ NS_IMETHODIMP nsWindow::SetSizeMode(PRIn
   nsresult rv;
 
   // Let's not try and do anything if we're already in that state.
   // (This is needed to prevent problems when calling window.minimize(), which
   // calls us directly, and then the OS triggers another call to us.)
   if (aMode == mSizeMode)
     return NS_OK;
 
+#ifdef WINCE
   // on windows mobile, dialogs and top level windows are full screen
   // This is partly due to the lack of a GetWindowPlacement.
   if (mWindowType == eWindowType_dialog || mWindowType == eWindowType_toplevel) {
     aMode = nsSizeMode_Maximized;
   }
+#endif
 
   // save the requested state
   rv = nsBaseWidget::SetSizeMode(aMode);
   if (NS_SUCCEEDED(rv) && mIsVisible) {
     int mode;
 
     switch (aMode) {
       case nsSizeMode_Maximized :