LCL: GTK2: transient form when called from modal form and PopupMode <> pmNone.

git-svn-id: trunk@56834 -
This commit is contained in:
michl 2017-12-23 20:53:11 +00:00
parent b4f4b7767b
commit 630f7a6594

View File

@ -713,6 +713,8 @@ var
// lcl_nonmodal_over_modal is needed to track nonmodal form
// created and shown when we have active modal forms
g_object_set_data(PGObject(AWindow),'lcl_nonmodal_over_modal', AForm);
if (AForm.PopupMode <> pmNone) and (AForm.PopupParent <> nil) then
gtk_window_set_transient_for(AWindow, PGtkWindow(AForm.Handle));
Result := True;
end;
end;