CVS: rdesktop xwin.c,1.205.2.15,1.205.2.16

Pierre Ossman <[email protected]> Wed, 15 Mar 2006 07:27:30 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11667

Modified Files:
      Tag: seamlessrdp-branch
	xwin.c 
Log Message:
The logic for parent window was borked. Minor if-statement tweak.


Index: xwin.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v
retrieving revision 1.205.2.15
retrieving revision 1.205.2.16
diff -C2 -d -r1.205.2.15 -r1.205.2.16
*** xwin.c	15 Mar 2006 15:16:18 -0000	1.205.2.15
--- xwin.c	15 Mar 2006 15:27:24 -0000	1.205.2.16
***************
*** 3085,3090 ****
  	}
  
  	/* Set WM_TRANSIENT_FOR, if necessary */
! 	if ((parent == 0x00000000) || (parent == 0xFFFFFFFF))
  	{
  		sw_parent = seamless_get_window_by_id(parent);
--- 3085,3093 ----
  	}
  
+ 	/* Handle popups without parents through some ewm hints */
+ 	if (parent == 0xFFFFFFFF)
+ 		ewmh_set_window_popup(wnd);
  	/* Set WM_TRANSIENT_FOR, if necessary */
! 	else if (parent != 0x00000000)
  	{
  		sw_parent = seamless_get_window_by_id(parent);
***************
*** 3095,3101 ****
  	}
  
- 	/* Handle popups without parents through some ewm hints */
- 	if (parent == 0xFFFFFFFF)
- 		ewmh_set_window_popup(wnd);
  
  	/* FIXME: Support for Input Context:s */
--- 3098,3101 ----



-------------------------------------------------------
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