Mercurial > pidgin.yaz
changeset 21528:c9c6f77f624e
Use a Message only window for processing messages from the win32 launcher since it is slightly more efficient.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 15 Nov 2007 18:25:50 +0000 |
parents | 5b9da9db7e81 |
children | d3ac933fae46 |
files | pidgin/win32/gtkwin32dep.c pidgin/win32/winpidgin.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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; }