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