Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Km8mj-0002Ck-CF for qemu-devel@nongnu.org; Sat, 04 Oct 2008 11:11:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Km8mi-0002Ba-GX for qemu-devel@nongnu.org; Sat, 04 Oct 2008 11:11:08 -0400 Received: from [199.232.76.173] (port=50581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km8mi-0002BX-BQ for qemu-devel@nongnu.org; Sat, 04 Oct 2008 11:11:08 -0400 Received: from hera.rbi.informatik.uni-frankfurt.de ([141.2.1.1]:40855) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Km8mh-000876-Rf for qemu-devel@nongnu.org; Sat, 04 Oct 2008 11:11:08 -0400 Received: from [192.168.1.100] (dslb-084-058-017-162.pools.arcor-ip.net [84.58.17.162]) (authenticated bits=0) by hera.rbi.informatik.uni-frankfurt.de (8.13.8/8.13.8) with ESMTP id m94FAoML000752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 4 Oct 2008 17:11:03 +0200 Message-ID: <48E78781.9040300@cs.uni-frankfurt.de> Date: Sat, 04 Oct 2008 17:10:57 +0200 From: Andreas Leicher MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010601050201040200000505" Subject: [Qemu-devel] patch to change window title in qemu vnc Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------010601050201040200000505 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 --------------010601050201040200000505 Content-Type: text/plain; name="qemu-vnc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-vnc.patch" *** 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); --------------010601050201040200000505--