Saturday, September 8, 2012

Re: Setting WM_CLASS

On Sat, 8 Sep 2012, Marco wrote:

> Hi,
>
> is it possible to set the WM_CLASS of gVim to a custom value?

If you're using a GTK version of gvim, you should be able to pass the
'--class' commandline argument.

e.g.:

$ gvim --class yay
$ xprop WM_CLASS
## ...then click on the window...
WM_CLASS(STRING) = "gvim", "yay"


Not sure this is documented anywhere. Found it by source-diving.
There's a large set of:

/* Arguments handled by GTK (and GNOME) internally. */

starting at line 333 of src/gui_gtk_x11.c

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: