[ros-diffs] [dchapyshev] 41373: - Fix Firefox 1.0/1.5 minimisation to taskbar Patch by Mikhail Denisenko (denisenkom at gmail.com) See issue #2451 for more details.

dchapyshev at svn.reactos.org dchapyshev at svn.reactos.org
Wed Jun 10 20:44:32 CEST 2009


Author: dchapyshev
Date: Wed Jun 10 22:44:31 2009
New Revision: 41373

URL: http://svn.reactos.org/svn/reactos?rev=41373&view=rev
Log:
- Fix Firefox 1.0/1.5 minimisation to taskbar
Patch by Mikhail Denisenko (denisenkom at gmail.com)

See issue #2451 for more details.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/window.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/window.c?rev=41373&r1=41372&r2=41373&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Wed Jun 10 22:44:31 2009
@@ -3997,14 +3997,15 @@
    {
       Safepl.showCmd = SW_HIDE;
    }
-   else if (0 != (Window->Flags & WINDOWOBJECT_RESTOREMAX) ||
-            0 != (Wnd->Style & WS_MAXIMIZE))
-   {
-      Safepl.showCmd = SW_MAXIMIZE;
+   else if ((0 != (Window->Flags & WINDOWOBJECT_RESTOREMAX) ||
+            0 != (Wnd->Style & WS_MAXIMIZE)) &&
+            0 == (Wnd->Style & WS_MINIMIZE))
+   {
+      Safepl.showCmd = SW_SHOWMAXIMIZED;
    }
    else if (0 != (Wnd->Style & WS_MINIMIZE))
    {
-      Safepl.showCmd = SW_MINIMIZE;
+      Safepl.showCmd = SW_SHOWMINIMIZED;
    }
    else if (0 != (Wnd->Style & WS_VISIBLE))
    {



More information about the Ros-diffs mailing list