From bf0c99d4fa379282ce7d75821ec3d145da042f1e Mon Sep 17 00:00:00 2001 From: Anatoly Lyutin Date: Mon, 4 Aug 2008 12:55:59 +0400 Subject: [PATCH] Remove unneeded palette messages. --- dlls/user32/focus.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/dlls/user32/focus.c b/dlls/user32/focus.c index a131150..ca77b5b 100644 --- a/dlls/user32/focus.c +++ b/dlls/user32/focus.c @@ -110,14 +110,7 @@ static BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus ) if (prev) *prev = previous; if (previous == hwnd) return TRUE; - if (hwnd) - { - /* send palette messages */ - if (SendMessageW( hwnd, WM_QUERYNEWPALETTE, 0, 0 )) - SendMessageTimeoutW( HWND_BROADCAST, WM_PALETTEISCHANGING, (WPARAM)hwnd, 0, - SMTO_ABORTIFHUNG, 2000, NULL ); - if (!IsWindow(hwnd)) return FALSE; - } + if (hwnd && !IsWindow(hwnd)) return FALSE; old_thread = previous ? GetWindowThreadProcessId( previous, NULL ) : 0; new_thread = hwnd ? GetWindowThreadProcessId( hwnd, NULL ) : 0; -- 1.5.4.5.GIT