From 8abf7a676f393f763aed647a40f52c31c8e31400 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Mon, 3 Mar 2003 19:51:31 +0000 Subject: [PATCH] Temp fix svn path=/trunk/; revision=4234 --- reactos/lib/user32/windows/defwnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index 1c23095dc42..be0dfc61aea 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -1,4 +1,4 @@ -/* $Id: defwnd.c,v 1.25 2003/03/01 20:39:16 rcampbell Exp $ +/* $Id: defwnd.c,v 1.26 2003/03/03 19:51:31 rcampbell Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -723,7 +723,7 @@ DefWndHandleLButtonDownNC(HWND hWnd, WPARAM wParam, LPARAM lParam) { case HTCAPTION: { - HWND hTopWnd = GetAncestor(hWnd, GA_ROOT); + HWND hTopWnd = GetDesktopWindow(); //GetAncestor(hWnd, GA_ROOT); temp fix. if (SetActiveWindow(hTopWnd) || GetActiveWindow() == hTopWnd) { SendMessageA(hWnd, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, lParam);