CVS: seamlessrdp/ServerExe/HookDll hookdll.c,1.4,1.5

Pierre Ossman <[email protected]>
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-serv10437/ServerExe/HookDll

Modified Files:
	hookdll.c 
Log Message:
Remove handling of WM_WINDOWPOSCHANGING and move that into WM_WINDOWPOSCHANGED
since the former isn't always sent.


Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** hookdll.c	9 Mar 2006 15:48:55 -0000	1.4
--- hookdll.c	9 Mar 2006 15:57:10 -0000	1.5
***************
*** 107,139 ****
  					break;
  
! 				if (wp->flags & SWP_NOMOVE && wp->flags & SWP_NOSIZE)
! 					break;
! 
! 				if (!GetWindowRect(hwnd, &rect))
  				{
! 					debug("GetWindowRect failed!\n");
! 					break;
! 				}
! 
! 				vchannel_write("POSITION1,0x%p,%d,%d,%d,%d,0x%x",
! 					       hwnd,
! 					       rect.left, rect.top,
! 					       rect.right - rect.left, rect.bottom - rect.top, 0);
! 
! 				break;
! 			}
! 
! 		case WM_WINDOWPOSCHANGING:
! 			{
! 				WINDOWPOS *wp = (WINDOWPOS *) lparam;
  
! 				if (!(style & WS_VISIBLE))
! 					break;
  
  				if (!(wp->flags & SWP_NOZORDER))
  					vchannel_write("ZCHANGE1,0x%p,0x%p,0x%x",
  						       hwnd,
  						       wp->flags & SWP_NOACTIVATE ? wp->
  						       hwndInsertAfter : 0, 0);
  
  				break;
--- 107,132 ----
  					break;
  
! 				if (!(wp->flags & SWP_NOMOVE && wp->flags & SWP_NOSIZE))
  				{
! 					if (!GetWindowRect(hwnd, &rect))
! 					{
! 						debug("GetWindowRect failed!\n");
! 						break;
! 					}
  
! 					vchannel_write("POSITION1,0x%p,%d,%d,%d,%d,0x%x",
! 						       hwnd,
! 						       rect.left, rect.top,
! 						       rect.right - rect.left,
! 						       rect.bottom - rect.top, 0);
! 				}
  
  				if (!(wp->flags & SWP_NOZORDER))
+ 				{
  					vchannel_write("ZCHANGE1,0x%p,0x%p,0x%x",
  						       hwnd,
  						       wp->flags & SWP_NOACTIVATE ? wp->
  						       hwndInsertAfter : 0, 0);
+ 				}
  
  				break;



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.