mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 01:49:25 +02:00
Qt: workaround for qt lib issue with modal windows minimizing (needed two clicks to minimize app) on X11. issue #20824
git-svn-id: trunk@33995 -
This commit is contained in:
parent
72229752c8
commit
e2870d69ef
@ -383,6 +383,8 @@ begin
|
||||
{$endif}
|
||||
|
||||
{$ifdef HASX11}
|
||||
if IsOldKDEInstallation then
|
||||
begin
|
||||
W := nil;
|
||||
ActiveWin := GetActiveWindow;
|
||||
if ActiveWin <> 0 then
|
||||
@ -400,6 +402,8 @@ begin
|
||||
end;
|
||||
end;
|
||||
QWidget_setParent(Widget.Widget, W);
|
||||
end else
|
||||
QWidget_setParent(Widget.Widget, QApplication_desktop());
|
||||
{$endif}
|
||||
|
||||
QWidget_setWindowFlags(Widget.Widget, QtDialog or
|
||||
|
Loading…
Reference in New Issue
Block a user