CVS: seamlessrdp/ServerExe main.c,1.26,1.27
Pierre Ossman <[email protected]> Wed, 22 Mar 2006 03:52:09 -0800
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7389/ServerExe
Modified Files:
main.c
Log Message:
SetActiveWindow() only does what we want when the window is owned by the
same process as the currently active. SetForegroundWindow() does what we want
under all circumstances.
Index: main.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** main.c 21 Mar 2006 14:38:38 -0000 1.26
--- main.c 22 Mar 2006 11:52:07 -0000 1.27
***************
*** 23,26 ****
--- 23,28 ----
*/
+ #define WINVER 0x0501
+
#include <windows.h>
#include <stdio.h>
***************
*** 338,341 ****
--- 340,346 ----
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE, NULL, 0);
+ /* We don't want windows denying requests to activate windows. */
+ SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, 0, 0);
+
if (strlen(cmdline) == 0)
{
-------------------------------------------------------
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