CVS: rdesktop proto.h,1.87.2.7,1.87.2.8 seamless.c,1.1.2.13,1.1.2.14 xwin.c,1.205.2.21,1.205.2.22

Pierre Ossman <[email protected]> Fri, 17 Mar 2006 01:56:22 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12938

Modified Files:
      Tag: seamlessrdp-branch
	proto.h seamless.c xwin.c 
Log Message:
Detect focus changes and send FOCUS to the server.


Index: proto.h
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/proto.h,v
retrieving revision 1.87.2.7
retrieving revision 1.87.2.8
diff -C2 -d -r1.87.2.7 -r1.87.2.8
*** proto.h	17 Mar 2006 08:52:29 -0000	1.87.2.7
--- proto.h	17 Mar 2006 09:56:20 -0000	1.87.2.8
***************
*** 290,293 ****
--- 290,294 ----
  void seamless_send_state(unsigned long id, unsigned int state, unsigned long flags);
  void seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags);
+ void seamless_send_focus(unsigned long id, unsigned long flags);
  
  /* *INDENT-OFF* */

Index: seamless.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/Attic/seamless.c,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -C2 -d -r1.1.2.13 -r1.1.2.14
*** seamless.c	17 Mar 2006 08:52:29 -0000	1.1.2.13
--- seamless.c	17 Mar 2006 09:56:20 -0000	1.1.2.14
***************
*** 348,349 ****
--- 348,359 ----
  	seamless_send("ZCHANGE,0x%08lx,0x%08lx,0x%lx\n", id, below, flags);
  }
+ 
+ 
+ void
+ seamless_send_focus(unsigned long id, unsigned long flags)
+ {
+ 	if (!g_seamless_rdp)
+ 		return;
+ 
+ 	seamless_send("FOCUS,0x%08lx,0x%lx\n", id, flags);
+ }

Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.205.2.21
retrieving revision 1.205.2.22
diff -C2 -d -r1.205.2.21 -r1.205.2.22
*** xwin.c	17 Mar 2006 08:52:29 -0000	1.205.2.21
--- xwin.c	17 Mar 2006 09:56:20 -0000	1.205.2.22
***************
*** 1913,1916 ****
--- 1913,1922 ----
  					XGrabKeyboard(g_display, g_wnd, True,
  						      GrabModeAsync, GrabModeAsync, CurrentTime);
+ 
+ 				sw = seamless_get_window_by_wnd(xevent.xfocus.window);
+ 				if (!sw)
+ 					break;
+ 
+ 				seamless_send_focus(sw->id, 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