0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.1.0782: Win32: cursor blinks when Vim is not active

Problem:    Win32: cursor blinks when Vim is not active.
Solution:   Remove call to setActiveWindow(). (Yasuhiro Matsumoto,
            closes #3778)
This commit is contained in:
Bram Moolenaar 2019-01-19 19:54:20 +01:00
parent a502caab8b
commit 2d951a486e
4 changed files with 2 additions and 12 deletions

View File

@ -2442,12 +2442,6 @@ CenterWindow(
}
#endif /* FEAT_GUI_DIALOG */
void
gui_mch_activate_window(void)
{
(void)SetActiveWindow(s_hwnd);
}
#if defined(FEAT_TOOLBAR) || defined(PROTO)
void
gui_mch_show_toolbar(int showit)

View File

@ -2080,11 +2080,6 @@ gui_update_menus(int modes)
gui_mch_draw_menubar();
prev_mode = mode;
force_menu_update = FALSE;
# ifdef FEAT_GUI_W32
/* This can leave a tearoff as active window - make sure we
* have the focus <negri>*/
gui_mch_activate_window();
# endif
}
}

View File

@ -36,7 +36,6 @@ void gui_mch_set_menu_pos(int x, int y, int w, int h);
void gui_mch_menu_hidden(vimmenu_T *menu, int hidden);
void gui_mch_draw_menubar(void);
guicolor_T gui_mch_get_rgb(guicolor_T pixel);
void gui_mch_activate_window(void);
void gui_mch_show_toolbar(int showit);
void gui_mch_show_tabline(int showit);
int gui_mch_showing_tabline(void);

View File

@ -791,6 +791,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
782,
/**/
781,
/**/