Your message dated Mon, 20 May 2013 22:53:00 -0400
with message-id <20130521025300.ga24...@cerberus.jamessan.com>
has caused the   report #639925,
regarding /usr/bin/vim.gnome: WM_CLASS property differs when vim is launched as 
'vim' or 'gvim'; 
to be marked as having been forwarded to the upstream software
author(s) Bram Moolenaar <b...@moolenaar.net>

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
639925: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639925
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Hi Bram,

When the GUI is launched by using ":gui" from Vim or when the binary is
not named gvim (like vim.gtk in Debian), the WM_CLASS X property isn't
set correctly.

Sam Morris provided the attached patch so WM_CLASS is consistently set,
which also ensures the correct .desktop file is found when window
managers try to find the tray icon for Vim.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <james...@debian.org>
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 @@
 	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))
     {

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to