mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 22:59:27 +02:00
cocoa: adding window content invalidation on hidding of window
git-svn-id: trunk@61704 -
This commit is contained in:
parent
91bd946fad
commit
1437ddef5a
@ -1108,6 +1108,9 @@ begin
|
||||
w := TCocoaWindowContent(AWinControl.Handle).lclOwnWindow;
|
||||
if Assigned(w) and Assigned(w.parentWindow) then
|
||||
w.parentWindow.removeChildWindow(w);
|
||||
// if the same control needs to be shown again, it will be redrawn
|
||||
// without this invalidation, Cocoa might should the previously cached contents
|
||||
TCocoaWindowContent(AWinControl.Handle).documentView.setNeedsDisplay_(true);
|
||||
end;
|
||||
TCocoaWSWinControl.ShowHide(AWinControl);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user