anchor.diff:  
     Application.OnIdle := DoIdle;
     Application.OnDeactivate := DoDeactivate;
  +  Application.OnRestore := DoRestore; //OnActivate seems to happen at the wrong times, OnRestore happens when alt-tabbing back in full screen mode
   
     FormLoading.Hide;
   end;
  
positive.code: end;
  
  
  procedure TKMMain.DoDeactivate(Sender: TObject);
  begin
    //Occurs during Toggle to fullscreen, should be ignored
  
negative.code: procedure TKMMain.ApplyCursorRestriction;
  var Rect: TRect;
  begin
    //This restriction is removed when alt-tabbing out, and added again when alt-tabbing back
    {$IFDEF MSWindows}
    if fMainSettings.FullScreen then
    begin
  