[ros-diffs] [fireball] 50451: - Allow size change for a minimized window. This fixes the famous "unable to restore a minimized window" bug. Now you can freely minimize/maximize windows using taskbar as you wou...

fireball at svn.reactos.org fireball at svn.reactos.org
Thu Jan 20 21:36:08 UTC 2011


Author: fireball
Date: Thu Jan 20 21:36:07 2011
New Revision: 50451

URL: http://svn.reactos.org/svn/reactos?rev=50451&view=rev
Log:
- Allow size change for a minimized window. This fixes the famous "unable to restore a minimized window" bug. Now you can freely minimize/maximize windows using taskbar as you would usually do in trunk/windows.

Modified:
    branches/arwinss/reactos/dll/win32/winent.drv/window.c

Modified: branches/arwinss/reactos/dll/win32/winent.drv/window.c
URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/winent.drv/window.c?rev=50451&r1=50450&r2=50451&view=diff
==============================================================================
--- branches/arwinss/reactos/dll/win32/winent.drv/window.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/winent.drv/window.c [iso-8859-1] Thu Jan 20 21:36:07 2011
@@ -319,8 +319,6 @@
     LONG width, height;
     LONG x, y;
 
-    if (data->iconic) return;
-
     SwmPosChanged(data->whole_window, &data->whole_rect, old_whole_rect, NULL, swp_flags);
 
     width = data->whole_rect.right - data->whole_rect.left;
@@ -862,9 +860,6 @@
     if ((new_style & WS_VISIBLE) &&
         ((new_style & WS_MINIMIZE) || is_window_rect_mapped( window_rect )))
     {
-        //if (!data->mapped || (swp_flags & (SWP_FRAMECHANGED|SWP_STATECHANGED)))
-            //set_wm_hints( display, data );
-
         if (!data->mapped)
         {
             map_window( data, new_style );
@@ -872,11 +867,7 @@
         else if ((swp_flags & SWP_STATECHANGED) && (!data->iconic != !(new_style & WS_MINIMIZE)))
         {
             data->iconic = (new_style & WS_MINIMIZE) != 0;
-            FIXME( "changing win %p iconic state to %u\n", data->hwnd, data->iconic );
-            //if (data->iconic)
-            //    XIconifyWindow( display, data->whole_window, DefaultScreen(display) );
-            //else if (is_window_rect_mapped( rectWindow ))
-            //    XMapWindow( display, data->whole_window );
+            TRACE( "changing win %p iconic state to %u\n", data->hwnd, data->iconic );
         }
     }
 }




More information about the Ros-diffs mailing list