anchor.diff:  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
  
positive.code: procedure TKMMain.ApplyCursorRestriction;
  var Rect: TRect;
  begin
    //todo: But I think this restriction will still apply when you alt-tab out, so we should disable it
    //then so the player can use both screens. Needs testing.
    {$IFDEF MSWindows}
    if fMainSettings.FullScreen then
    begin
  
negative.code: 
    //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;
  
  
  