CVS: seamlessrdp/ServerExe/HookDll hookdll.c, 1.41, 1.42
Peter Ã
strand <[email protected]> Thu, 06 Mar 2008 07:35:30 -0800
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv26988/HookDll
Modified Files:
hookdll.c
Log Message:
Applied patch:
[ 1715359 ] seamlessrdp topmost windows
(slightly modified). Requires support in rdesktop.
Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** hookdll.c 6 Mar 2008 15:12:26 -0000 1.41
--- hookdll.c 6 Mar 2008 15:35:28 -0000 1.42
***************
*** 184,188 ****
vchannel_write("ACK", "%u", serial);
else
! vchannel_write("ZCHANGE", "0x%08lx,0x%08lx,0x%08x", hwnd, behind, 0);
vchannel_unblock();
--- 184,195 ----
vchannel_write("ACK", "%u", serial);
else
! {
! int flags = 0;
! LONG exstyle = GetWindowLong(hwnd, GWL_EXSTYLE);
! // handle always on top
! if (exstyle & WS_EX_TOPMOST)
! flags |= SEAMLESS_CREATE_TOPMOST;
! vchannel_write("ZCHANGE", "0x%08lx,0x%08lx,0x%08x", hwnd, behind, flags);
! }
vchannel_unblock();
***************
*** 393,397 ****
--- 400,406 ----
int flags;
HICON icon;
+ LONG exstyle;
+ exstyle = GetWindowLong(hwnd, GWL_EXSTYLE);
GetWindowThreadProcessId(hwnd, &pid);
***************
*** 399,402 ****
--- 408,414 ----
if (style & DS_MODALFRAME)
flags |= SEAMLESS_CREATE_MODAL;
+ // handle always on top
+ if (exstyle & WS_EX_TOPMOST)
+ flags |= SEAMLESS_CREATE_TOPMOST;
vchannel_write("CREATE", "0x%08lx,0x%08lx,0x%08lx,0x%08x",
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/