how to change the default text in the titlebar of Xephyr window ?

James Cloos cloos at jhcloos.com
Tue Mar 10 13:57:21 PDT 2009


>>>>> "hd" == hd  <h.dupont65 at laposte.net> writes:

hd> By defaut, Xephyr uses this text in its titlebar "Xephyr on <display> 
hd> (ctrl+shift grabs mouse and keyboard)"

hd> Is it possible to change this title from
hd>     * the command line ?
hd>     * a configuration file ?

Not without changing the src code.

Look for the hostx_set_win_title() function in hostx.c and ephyr.c, both
in the hw/kdrive/ephyr directory.  Eg:

http://cgit.freedesktop.org/xorg/xserver/tree/hw/kdrive/ephyr/ephyr.c
http://cgit.freedesktop.org/xorg/xserver/tree/hw/kdrive/ephyr/hostx.c

That said, the window name is just a property.  You can use xprop(1) to
query and set properties for any window, so you can use that to set the
WM_NAME and/or WM_ICON_NAME STRING properties.  (There are also the
UTF8_STRING properties, _NET_WM_NAME and _NET_WM_ICON_NAME.)

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



More information about the xorg mailing list