CVS: seamlessrdp/ServerExe/HookDll hookdll.c,1.35,1.36
Pierre Ossman <[email protected]> Thu, 20 Apr 2006 05:56:21 -0700
| 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-serv29450/ServerExe/HookDll
Modified Files:
hookdll.c
Log Message:
Don't send STATE for hidden windows.
Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** hookdll.c 22 Mar 2006 11:56:46 -0000 1.35
--- hookdll.c 20 Apr 2006 12:56:18 -0000 1.36
***************
*** 373,378 ****
{
int show, state, blocked;
! HWND blocked_hwnd;
unsigned int serial;
WaitForSingleObject(g_mutex, INFINITE);
--- 373,379 ----
{
int show, state, blocked;
! HWND hwnd, blocked_hwnd;
unsigned int serial;
+ LONG style;
WaitForSingleObject(g_mutex, INFINITE);
***************
*** 382,385 ****
--- 383,393 ----
ReleaseMutex(g_mutex);
+ hwnd = (HWND) wparam;
+
+ style = GetWindowLong(hwnd, GWL_STYLE);
+
+ if (!(style & WS_VISIBLE))
+ break;
+
show = LOWORD(lparam);
***************
*** 397,405 ****
}
! if ((blocked_hwnd == (HWND) wparam) && (blocked == state))
vchannel_write("ACK", "%u", serial);
else
vchannel_write("STATE", "0x%08lx,0x%08x,0x%08x",
! (HWND) wparam, state, 0);
break;
--- 405,413 ----
}
! if ((blocked_hwnd == hwnd) && (blocked == state))
vchannel_write("ACK", "%u", serial);
else
vchannel_write("STATE", "0x%08lx,0x%08x,0x%08x",
! hwnd, state, 0);
break;
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642