# HG changeset patch # User Daniel Atallah # Date 1195151150 0 # Node ID c9c6f77f624e148d0eb9e659d013252caad527b2 # Parent 5b9da9db7e8179bdba4f194482956f98456a5f93 Use a Message only window for processing messages from the win32 launcher since it is slightly more efficient. diff -r 5b9da9db7e81 -r c9c6f77f624e pidgin/win32/gtkwin32dep.c --- a/pidgin/win32/gtkwin32dep.c Thu Nov 15 17:27:16 2007 +0000 +++ b/pidgin/win32/gtkwin32dep.c Thu Nov 15 18:25:50 2007 +0000 @@ -242,7 +242,7 @@ /* Create the window */ if(!(win_hwnd = CreateWindow(wname, TEXT("WinpidginMsgWin"), 0, 0, 0, 0, 0, - NULL, NULL, winpidgin_exe_hinstance(), 0))) { + HWND_MESSAGE, NULL, winpidgin_exe_hinstance(), 0))) { purple_debug_error("winpidgin", "Unable to create message window.\n"); return NULL; diff -r 5b9da9db7e81 -r c9c6f77f624e pidgin/win32/winpidgin.c --- a/pidgin/win32/winpidgin.c Thu Nov 15 17:27:16 2007 +0000 +++ b/pidgin/win32/winpidgin.c Thu Nov 15 18:25:50 2007 +0000 @@ -454,7 +454,7 @@ printf("An instance of Pidgin is already running.\n"); - if((msg_win = FindWindow(TEXT("WinpidginMsgWinCls"), NULL))) + if((msg_win = FindWindowEx(HWND_MESSAGE, NULL, TEXT("WinpidginMsgWinCls"), NULL))) if(SendMessage(msg_win, PIDGIN_WM_FOCUS_REQUEST, (WPARAM) NULL, (LPARAM) NULL)) return FALSE; @@ -494,7 +494,7 @@ return; } - if (!(msg_win = FindWindow(TEXT("WinpidginMsgWinCls"), NULL))) { + if (!(msg_win = FindWindowEx(HWND_MESSAGE, NULL, TEXT("WinpidginMsgWinCls"), NULL))) { printf("Unable to find an instance of Pidgin to handle protocol message.\n"); return; }