CVS: seamlessrdp/ServerExe/HookDll hookdll.c,1.23,1.24
Pierre Ossman <[email protected]> Fri, 17 Mar 2006 01:55:37 -0800
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12354/ServerExe/HookDll
Modified Files:
hookdll.c
Log Message:
Handle FOCUS. We need to do this via an extra message because a process is
only allowed to focus its own windows.
Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** hookdll.c 16 Mar 2006 13:24:18 -0000 1.23
--- hookdll.c 17 Mar 2006 09:55:35 -0000 1.24
***************
*** 52,55 ****
--- 52,58 ----
#pragma comment(linker, "/section:SHAREDDATA,rws")
+ #define FOCUS_MSG_NAME "WM_SEAMLESS_FOCUS"
+ static UINT g_wm_seamless_focus;
+
static HHOOK g_cbt_hook = NULL;
static HHOOK g_wndproc_hook = NULL;
***************
*** 239,242 ****
--- 242,248 ----
}
+ if (msg == g_wm_seamless_focus)
+ SetFocus(hwnd);
+
end:
return CallNextHookEx(g_wndprocret_hook, code, cur_thread, details);
***************
*** 348,351 ****
--- 354,359 ----
ReleaseMutex(g_mutex);
+ g_wm_seamless_focus = RegisterWindowMessage(FOCUS_MSG_NAME);
+
vchannel_open();
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642