* [Qemu-devel] patch to change window title in qemu vnc
@ 2008-10-04 15:10 Andreas Leicher
2008-10-04 22:24 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Leicher @ 2008-10-04 15:10 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
Hi,
enclosed you find a patch, that changes the window title as seen by VNC
clients connecting to qemu vnc-sessions from "QEMU" to "QEMU VNC:"
followed by the displaynumber you specified with the command line
parameter -vnc :0.
This comes in very handy in case you have different qemu instances
running on a remote host, and you access them via vnc, as the client's
window title gives you a hint to which virtual machine you are connected
right now.
Regards, Andreas
[-- Attachment #2: qemu-vnc.patch --]
[-- Type: text/plain, Size: 737 bytes --]
*** vnc.c 2008-01-06 20:38:42.000000000 +0100
--- vnc.c 2008-10-02 16:42:06.000000000 +0200
***************
*** 1305,1313 ****
vnc_write(vs, pad, 3); /* padding */
if (qemu_name)
! size = snprintf(buf, sizeof(buf), "QEMU (%s)", qemu_name);
else
! size = snprintf(buf, sizeof(buf), "QEMU");
vnc_write_u32(vs, size);
vnc_write(vs, buf, size);
--- 1305,1313 ----
vnc_write(vs, pad, 3); /* padding */
if (qemu_name)
! size = snprintf(buf, sizeof(buf), "QEMU (%s) VNC%s", qemu_name, vs->display);
else
! size = snprintf(buf, sizeof(buf), "QEMU VNC%s", vs->display);
vnc_write_u32(vs, size);
vnc_write(vs, buf, size);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] patch to change window title in qemu vnc
2008-10-04 15:10 [Qemu-devel] patch to change window title in qemu vnc Andreas Leicher
@ 2008-10-04 22:24 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2008-10-04 22:24 UTC (permalink / raw)
To: qemu-devel
Andreas Leicher wrote:
> Hi,
>
> enclosed you find a patch, that changes the window title as seen by
> VNC clients connecting to qemu vnc-sessions from "QEMU" to "QEMU VNC:"
> followed by the displaynumber you specified with the command line
> parameter -vnc :0.
This is already supported via the -name parameter. Your patch is
against an old copy of QEMU.
Regards,
Anthony Liguori
> This comes in very handy in case you have different qemu instances
> running on a remote host, and you access them via vnc, as the client's
> window title gives you a hint to which virtual machine you are
> connected right now.
>
> Regards, Andreas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-04 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-04 15:10 [Qemu-devel] patch to change window title in qemu vnc Andreas Leicher
2008-10-04 22:24 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).