extern int w32_system_caret_y;
extern int w32_use_visible_system_caret;
-HWND w32_visible_system_caret_hwnd;
+static HWND w32_visible_system_caret_hwnd;
\f
/* Error if we are not connected to MS-Windows. */
/* Relinquish the system caret. */
if (w32_system_caret_hwnd)
{
- DestroyCaret ();
- w32_system_caret_hwnd = NULL;
w32_visible_system_caret_hwnd = NULL;
+ w32_system_caret_hwnd = NULL;
+ DestroyCaret ();
}
case WM_MOVE:
case WM_SIZE:
track_mouse_event_fn = GetProcAddress (user32_lib, "TrackMouseEvent");
track_mouse_window = NULL;
+ w32_visible_system_caret_hwnd = NULL;
+
/* The section below is built by the lisp expression at the top of the file,
just above where these variables are declared. */
/*&&& init symbols here &&&*/