mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 20:35:58 +02:00
Qt5,Qt6: fixed restoring secondary minimized window. issue #40243
This commit is contained in:
parent
9846c0c8f4
commit
107d8dbeae
@ -2010,7 +2010,6 @@ begin
|
|||||||
Result := SIMPLEREGION
|
Result := SIMPLEREGION
|
||||||
else
|
else
|
||||||
Result := COMPLEXREGION;
|
Result := COMPLEXREGION;
|
||||||
|
|
||||||
finally
|
finally
|
||||||
QRegion_destroy(ClipRegion);
|
QRegion_destroy(ClipRegion);
|
||||||
QRegion_destroy(Region);
|
QRegion_destroy(Region);
|
||||||
@ -5996,7 +5995,7 @@ begin
|
|||||||
{$note this should return current system active window, not
|
{$note this should return current system active window, not
|
||||||
application one, if our app isn''t active.
|
application one, if our app isn''t active.
|
||||||
This is per MSDN and pretty win32 specific}
|
This is per MSDN and pretty win32 specific}
|
||||||
if WindowManagerName = 'metacity' then
|
if not IsWayland and (WindowManagerName = 'metacity') then
|
||||||
Result := HwndFromWidgetH(X11GetActivewindow)
|
Result := HwndFromWidgetH(X11GetActivewindow)
|
||||||
else
|
else
|
||||||
Result := GetActiveWindow;
|
Result := GetActiveWindow;
|
||||||
@ -6011,7 +6010,9 @@ begin
|
|||||||
if HWND <> 0 then
|
if HWND <> 0 then
|
||||||
begin
|
begin
|
||||||
Result := TQtWidget(HWND).IsActiveWindow;
|
Result := TQtWidget(HWND).IsActiveWindow;
|
||||||
TQtWidget(HWnd).Activate;
|
if (TQtWidget(Hwnd).getWindowState and QtWindowMinimized) = QtWindowMinimized then
|
||||||
|
TQtWidget(Hwnd).ShowNormal;
|
||||||
|
TQtWidget(HWnd).BringToFront;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -2007,7 +2007,6 @@ begin
|
|||||||
Result := SIMPLEREGION
|
Result := SIMPLEREGION
|
||||||
else
|
else
|
||||||
Result := COMPLEXREGION;
|
Result := COMPLEXREGION;
|
||||||
|
|
||||||
finally
|
finally
|
||||||
QRegion_destroy(ClipRegion);
|
QRegion_destroy(ClipRegion);
|
||||||
QRegion_destroy(Region);
|
QRegion_destroy(Region);
|
||||||
@ -6038,7 +6037,7 @@ begin
|
|||||||
{$note this should return current system active window, not
|
{$note this should return current system active window, not
|
||||||
application one, if our app isn''t active.
|
application one, if our app isn''t active.
|
||||||
This is per MSDN and pretty win32 specific}
|
This is per MSDN and pretty win32 specific}
|
||||||
if WindowManagerName = 'metacity' then
|
if not IsWayland and (WindowManagerName = 'metacity') then
|
||||||
Result := HwndFromWidgetH(X11GetActivewindow)
|
Result := HwndFromWidgetH(X11GetActivewindow)
|
||||||
else
|
else
|
||||||
Result := GetActiveWindow;
|
Result := GetActiveWindow;
|
||||||
@ -6053,7 +6052,9 @@ begin
|
|||||||
if HWND <> 0 then
|
if HWND <> 0 then
|
||||||
begin
|
begin
|
||||||
Result := TQtWidget(HWND).IsActiveWindow;
|
Result := TQtWidget(HWND).IsActiveWindow;
|
||||||
TQtWidget(HWnd).Activate;
|
if (TQtWidget(Hwnd).getWindowState and QtWindowMinimized) = QtWindowMinimized then
|
||||||
|
TQtWidget(Hwnd).ShowNormal;
|
||||||
|
TQtWidget(HWnd).BringToFront;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user