Skip to content

Commit 2d951a4

Browse files
committed
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)
1 parent a502caa commit 2d951a4

4 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/gui_w32.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,12 +2442,6 @@ CenterWindow(
24422442
}
24432443
#endif /* FEAT_GUI_DIALOG */
24442444

2445-
void
2446-
gui_mch_activate_window(void)
2447-
{
2448-
(void)SetActiveWindow(s_hwnd);
2449-
}
2450-
24512445
#if defined(FEAT_TOOLBAR) || defined(PROTO)
24522446
void
24532447
gui_mch_show_toolbar(int showit)

src/menu.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,11 +2080,6 @@ gui_update_menus(int modes)
20802080
gui_mch_draw_menubar();
20812081
prev_mode = mode;
20822082
force_menu_update = FALSE;
2083-
# ifdef FEAT_GUI_W32
2084-
/* This can leave a tearoff as active window - make sure we
2085-
* have the focus <negri>*/
2086-
gui_mch_activate_window();
2087-
# endif
20882083
}
20892084
}
20902085

src/proto/gui_w32.pro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ void gui_mch_set_menu_pos(int x, int y, int w, int h);
3636
void gui_mch_menu_hidden(vimmenu_T *menu, int hidden);
3737
void gui_mch_draw_menubar(void);
3838
guicolor_T gui_mch_get_rgb(guicolor_T pixel);
39-
void gui_mch_activate_window(void);
4039
void gui_mch_show_toolbar(int showit);
4140
void gui_mch_show_tabline(int showit);
4241
int gui_mch_showing_tabline(void);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,8 @@ static char *(features[]) =
791791

792792
static int included_patches[] =
793793
{ /* Add new patch number below this line */
794+
/**/
795+
782,
794796
/**/
795797
781,
796798
/**/

0 commit comments

Comments
 (0)