[xorg-commit-diffs] xc/programs/Xserver/hw/xwin windialogs.c, 1.1.6.10, 1.1.6.11

Takuma Murakami xorg-commit at pdx.freedesktop.org
Fri Apr 2 23:39:38 PST 2004


Committed by: takuma

Update of /cvs/xorg/xc/programs/Xserver/hw/xwin
In directory pdx:/tmp/cvs-serv31398

Modified Files:
      Tag: CYGWIN
	windialogs.c 
Log Message:
Display dialog boxes in the center of the Windows desktop if Cygwin/X
is minimized.  The problem was reported by Rodrigo Medina.


Index: windialogs.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xwin/windialogs.c,v
retrieving revision 1.1.6.10
retrieving revision 1.1.6.11
diff -u -d -r1.1.6.10 -r1.1.6.11
--- a/windialogs.c	30 Mar 2004 07:46:40 -0000	1.1.6.10
+++ b/windialogs.c	3 Apr 2004 07:39:33 -0000	1.1.6.11
@@ -182,7 +182,7 @@
   RECT rc, rcDlg, rcDesk; 
  
   hwndDesk = GetParent (hwndDlg);
-  if (!hwndDesk)
+  if (!hwndDesk || IsIconic (hwndDesk))
     hwndDesk = GetDesktopWindow (); 
   
   GetWindowRect (hwndDesk, &rcDesk); 




More information about the xorg-commit-diffs mailing list