From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNNya-0003YC-IE for qemu-devel@nongnu.org; Thu, 15 Jan 2009 03:53:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNNyY-0003Xd-RO for qemu-devel@nongnu.org; Thu, 15 Jan 2009 03:53:20 -0500 Received: from [199.232.76.173] (port=57382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNNyY-0003Xa-Oe for qemu-devel@nongnu.org; Thu, 15 Jan 2009 03:53:18 -0500 Received: from mx2.redhat.com ([66.187.237.31]:50982) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNNyX-0005yQ-RH for qemu-devel@nongnu.org; Thu, 15 Jan 2009 03:53:18 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n0F8rGB9018594 for ; Thu, 15 Jan 2009 03:53:16 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n0F8rGe7029821 for ; Thu, 15 Jan 2009 03:53:16 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n0F8rFN2006719 for ; Thu, 15 Jan 2009 03:53:16 -0500 Subject: Re: [Qemu-devel] Ongoing changes to the displaying code From: Mark McLoughlin In-Reply-To: <49679E7F.6050504@codemonkey.ws> References: <4966ADD4.5090102@codesourcery.com> <4966BB7A.3090303@codemonkey.ws> <4966BEC4.7080903@codemonkey.ws> <60cad3f0901090128m23977527kf658c15ba90dbaf8@mail.gmail.com> <49676B43.2020406@codemonkey.ws> <18791.34404.878201.724561@mariner.uk.xensource.com> <4967885A.2020908@codemonkey.ws> <20090109174252.GA2193@kos.to> <49679E7F.6050504@codemonkey.ws> Content-Type: text/plain Date: Thu, 15 Jan 2009 08:53:13 +0000 Message-Id: <1232009593.5205.16.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: Mark McLoughlin , 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 On Fri, 2009-01-09 at 12:59 -0600, Anthony Liguori wrote: > > Riku Voipio wrote: > > On Fri, Jan 09, 2009 at 11:24:42AM -0600, Anthony Liguori wrote: > > > >> If you search the mailing lists, I went down this route before I > >> originally wrote the VNC server. XEmbed has some serious limitations > >> surrounding how events are propagated between windows. I convinced > >> myself that you couldn't do what you really wanted to do through this > >> mechanism. > >> > > > > Howabout using passing a window xid from the GUI app to qemu with > > command line paramater -parent ? This is how Xoo[1] starts Xephyr > > (or Xnest) in itself: > > > > [1] http://labs.o-hand.com/xoo/ > > > > Window events won't propagate (things like focus cycling). There is > tons of information about why these things don't work well in practice > out there for those interested in googling. FWIW, I got this to work well in the past with Sabayon. I've long forgotten the details, but here's the gtk+ widget with a lot of the gory bits: http://svn.gnome.org/viewvc/sabayon/trunk/admin-tool/sessionwidget.py?view=markup Also, see this blog entry: http://blogs.gnome.org/markmc/2005/06/14/input-focus/ Cheers, Mark.