mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-03 08:58:02 +02:00
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:
parent
da5e6df20d
commit
d60deb1bba
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue