mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 20:36:09 +02:00
Qt: removed usage of slow QApplication_syncX() when showing forms, all X11 code merged into one ifdef inside ShowHide().
git-svn-id: trunk@34051 -
This commit is contained in:
parent
cbd0b3eabe
commit
f0cd76b3a5
@ -476,23 +476,28 @@ begin
|
||||
|
||||
{$IFDEF HASX11}
|
||||
if AWinControl.HandleObjectShouldBeVisible and
|
||||
(fsModal in TForm(AWinControl).FormState) then
|
||||
not (csDesigning in TForm(AWinControl).ComponentState) and
|
||||
(TForm(AWinControl).FormStyle <> fsMDIChild) then
|
||||
begin
|
||||
if (Application.TaskBarBehavior <> tbSingleButton) then
|
||||
if (fsModal in TForm(AWinControl).FormState) then
|
||||
begin
|
||||
SetSkipX11Taskbar(Widget.Widget, True);
|
||||
Widget.setShowInTaskBar(False);
|
||||
if (Application.TaskBarBehavior <> tbSingleButton) then
|
||||
begin
|
||||
SetSkipX11Taskbar(Widget.Widget, True);
|
||||
Widget.setShowInTaskBar(False);
|
||||
end;
|
||||
if (QtWidgetSet.WindowManagerName = 'metacity') then
|
||||
X11Raise(QWidget_winID(Widget.Widget));
|
||||
end else
|
||||
if (TForm(AWinControl).FormStyle = fsSplash) then
|
||||
begin
|
||||
//process only qt sys events
|
||||
QCoreApplication_processEvents(QEventLoopExcludeUserInputEvents);
|
||||
//now send repaint to splash form
|
||||
QWidget_repaint(Widget.Widget);
|
||||
end;
|
||||
if (QtWidgetSet.WindowManagerName = 'metacity') then
|
||||
X11Raise(QWidget_winID(Widget.Widget));
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF HASX11}
|
||||
if (QtVersionMajor = 4) and (QtVersionMinor >= 6)
|
||||
and (TForm(AWinControl).FormStyle <> fsMDIChild) then
|
||||
QApplication_syncX();
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user