[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] patch to change window title in qemu vnc
From: |
Andreas Leicher |
Subject: |
[Qemu-devel] patch to change window title in qemu vnc |
Date: |
Sat, 04 Oct 2008 17:10:57 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.17) Gecko/20080914 Lightning/0.9 Thunderbird/2.0.0.17 ThunderBrowse/3.2.1.9 Mnenhy/0.7.5.666 |
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
*** 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);
- [Qemu-devel] patch to change window title in qemu vnc,
Andreas Leicher <=