[EXPLORER] -Revert a hack from r63304 that caused CORE-13388. This hid another bug...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 8 Jun 2017 20:31:49 +0000 (20:31 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 8 Jun 2017 20:31:49 +0000 (20:31 +0000)
svn path=/trunk/; revision=74968

reactos/base/shell/explorer/taskswnd.cpp

index 1dd2bf5..b5325ac 100644 (file)
@@ -1403,11 +1403,8 @@ public:
 
         case HSHELL_RUDEAPPACTIVATED:
         case HSHELL_WINDOWACTIVATED:
-            if (lParam)
-            {
-                ActivateTask((HWND) lParam);
-                Ret = TRUE;
-            }
+            ActivateTask((HWND) lParam);
+            Ret = TRUE;
             break;
 
         case HSHELL_FLASH:
@@ -1797,6 +1794,11 @@ public:
         return FALSE;
     }
 
+    LRESULT OnMouseActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
+    {
+        return MA_NOACTIVATE;
+    }
+
     LRESULT OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
     {
 #if DUMP_TASKS != 0
@@ -1844,6 +1846,8 @@ public:
         MESSAGE_HANDLER(WM_SETFONT, OnSetFont)
         MESSAGE_HANDLER(WM_SETTINGCHANGE, OnSettingChanged)
         MESSAGE_HANDLER(m_ShellHookMsg, HandleShellHookMsg)
+        MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate)
+        MESSAGE_HANDLER(WM_KLUDGEMINRECT, OnKludgeItemRect)
     END_MSG_MAP()
 
     HWND _Init(IN HWND hWndParent, IN OUT ITrayWindow *tray)