Xephyr: Print default server display number if none is specified
Signed-off-by: Egbert Eich <eich@freedesktop.org> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
5af73f4908
commit
b536d56aef
|
@ -177,7 +177,7 @@ hostx_set_win_title(KdScreenInfo *screen, const char *extra_text)
|
||||||
|
|
||||||
memset(buf, 0, BUF_LEN + 1);
|
memset(buf, 0, BUF_LEN + 1);
|
||||||
snprintf(buf, BUF_LEN, "Xephyr on %s.%d %s",
|
snprintf(buf, BUF_LEN, "Xephyr on %s.%d %s",
|
||||||
HostX.server_dpy_name,
|
HostX.server_dpy_name ? HostX.server_dpy_name : ":0",
|
||||||
scrpriv->mynum, (extra_text != NULL) ? extra_text : "");
|
scrpriv->mynum, (extra_text != NULL) ? extra_text : "");
|
||||||
|
|
||||||
xcb_icccm_set_wm_name(HostX.conn,
|
xcb_icccm_set_wm_name(HostX.conn,
|
||||||
|
|
Loading…
Reference in New Issue