#include "Desk.Wimp.h"
#include "Desk.WimpSWIs.h"
#include "Desk.Icon.h"

extern void Desk_Icon_LoseCaret(Desk_window_handle window, Desk_icon_handle icon)
/* Desk_Icon_LoseCaret
 * This routine ensures that the caret is *not* contained within the
 * designated icon. Only sets a new position if the icon currently contains
 *  the caret.
 */
{
  Desk_caret_block caret;

  Desk_Wimp_eGetCaretPosition(&caret);
  if (caret.window == window && caret.icon == icon)
    Desk_Icon_SetCaret(-1, -1);
}
