Display dialog boxes in the center of the Windows desktop if Cygwin/X is

minimized. The problem was reported by Rodrigo Medina.
This commit is contained in:
Takuma Murakami 2004-04-03 07:39:33 +00:00
parent da5e6df20d
commit d60deb1bba

View file

@ -182,7 +182,7 @@ winCenterDialog (HWND hwndDlg)
RECT rc, rcDlg, rcDesk;
hwndDesk = GetParent (hwndDlg);
if (!hwndDesk)
if (!hwndDesk || IsIconic (hwndDesk))
hwndDesk = GetDesktopWindow ();
GetWindowRect (hwndDesk, &rcDesk);