# HG changeset patch # User Bram Moolenaar # Date 1369133524 -7200 # Node ID 0c940b6f282836186f428d201760c6f6b9b52fc6 # Parent 4d87e50ebffcb8c4578f5a3f7bf954ec605b6f53 updated for version 7.3.985 Problem: GTK vim not started as gvim doesn't set WM_CLASS property to a useful value. Solution: Call g_set_prgname() on startup. (James McCoy) diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -1447,6 +1447,11 @@ gui_mch_init_check(void) using_gnome = 1; #endif + /* This defaults to argv[0], but we want it to match the name of the + * shipped gvim.desktop so that Vim's windows can be associated with this + * file. */ + g_set_prgname("gvim"); + /* Don't use gtk_init() or gnome_init(), it exits on failure. */ if (!gtk_init_check(&gui_argc, &gui_argv)) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 985, +/**/ 984, /**/ 983,