Alexander Koblov 2016-01-16 16:42:16 +00:00
commit d4e134d682

View file

@ -579,6 +579,7 @@ type
{$IF DEFINED(LCLGTK2)}
procedure WindowStateUpdate(Data: PtrInt);
{$ENDIF}
procedure WindowStateRefresh(Data: PtrInt);
private
{ Private declarations }
FMainSplitterPos: Double;
@ -1720,6 +1721,10 @@ begin
lastWindowState:=WindowState;
HiddenToTray := False;
end;
// Workaround http://doublecmd.sourceforge.net/forum/viewtopic.php?f=10&t=3193
if WindowState <> wsMinimized then begin
Application.QueueAsyncCall(@WindowStateRefresh, 0);
end;
end;
procedure TfrmMain.MainSplitterDblClick(Sender: TObject);
@ -5569,6 +5574,12 @@ begin
end;
end;
procedure TfrmMain.WindowStateRefresh(Data: PtrInt);
begin
pnlMain.Width:= pnlMain.Width - 1;
pnlMain.Width:= pnlMain.Width + 1;
end;
procedure TfrmMain.SetPanelDrive(aPanel: TFilePanelSelect; Drive: PDrive; ActivateIfNeeded: Boolean);
var
Index: Integer;