Qt: use direct X11 call for transient hint since Qt's QtTool flag is buggy. issue #29253

git-svn-id: trunk@51047 -
This commit is contained in:
zeljko 2015-12-27 09:14:49 +00:00
parent b7b8b6267a
commit bcb331e395

View File

@ -546,9 +546,9 @@ begin
APopupParent := TCustomForm(AWinControl).GetRealPopupParent;
if (APopupParent <> nil) then
begin
Flags := Widget.windowFlags;
Widget.setParent(TQtWidget(APopupParent.Handle).Widget);
Widget.setWindowFlags(Flags or QtTool);
{use direct X11 call instead of QtTool flag.issue #29253}
SetTransientForHint(Widget.Widget, TQtWidget(APopupParent.Handle).Widget);
end;
end;
{$ENDIF}