anchor.diff:  
     //Prevent the game window from being in the way by minimizing when alt-tabbing
     if (fMainSettings <> nil) and fMainSettings.FullScreen then
  +  begin
  +    ClipCursor(nil); //Remove all cursor clipping just in case Windows doesn't automatically
       Application.Minimize;
  +  end;
   end;
   
   
  
positive.code: 
    Application.OnIdle := DoIdle;
    Application.OnDeactivate := DoDeactivate;
  
    FormLoading.Hide;
  end;
  
negative.code: end;
  
  
  //Apply the cursor restriction when alt-tabbing back
  procedure TKMMain.DoRestore(Sender: TObject);
  begin
    if Application.Active and (fMainSettings <> nil) then
      ApplyCursorRestriction; //Cursor restriction is lost when alt-tabbing out, so we need to apply it again
  end;
  
  
  procedure TKMMain.DoDeactivate(Sender: TObject);
  begin
    //Occurs during Toggle to fullscreen, should be ignored
  