Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc6ts-0007uM-Tk for qemu-devel@nongnu.org; Mon, 23 Oct 2006 17:00:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc6tr-0007tX-1A for qemu-devel@nongnu.org; Mon, 23 Oct 2006 17:00:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc6tq-0007tU-TN for qemu-devel@nongnu.org; Mon, 23 Oct 2006 16:59:58 -0400 Received: from [217.115.192.216] (helo=topaz.conuropsis.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gc6tr-0005vW-0v for qemu-devel@nongnu.org; Mon, 23 Oct 2006 16:59:59 -0400 Received: from mon69-3-82-235-39-64.fbx.proxad.net ([82.235.39.64]:52968 ident=gnata) by topaz.conuropsis.org with esmtpsa (authenticated xavier) (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.62) id 1Gc6th-0001DY-Tw for qemu-devel@nongnu.org; Mon, 23 Oct 2006 22:59:50 +0200 Message-ID: <453D2D4E.8080208@obs.univ-lyon1.fr> Date: Mon, 23 Oct 2006 22:59:58 +0200 From: Xavier Gnata MIME-Version: 1.0 Subject: Re: [Qemu-devel] RFC : disable SDL window close capability\n References: <453C9D57.7020409@obs.univ-lyon1.fr> <1161634107.2976.3.camel@mjolnir> In-Reply-To: <1161634107.2976.3.camel@mjolnir> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit 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 John Morris wrote: > On Mon, 2006-10-23 at 05:45, Xavier Gnata wrote: > >> Hi, >> I have been asked to disable the capability to close qemu by clicking on >> the SDL window x icon. >> Any comments? >> > > Totally disabling close is pretty drastic. When the VM has went wrong > closing it is a valid option. How about trapping close and throwing up > an "Are you sure?" dialog? Give enough info to let a new user know that > clicking the "Yes" button might corrupt the VM's filesystem and cause > other permanent data loss. > > Well, it is not too drastic because my patch only adds an option. You can just ignore this -no-quit option. A popup would be good solution but sdl API does not offer a way to deal with that :( sdl is not done to implement buttons and so on. An osd could be a solution but do we really need that? Not sure. Please note that is something went wrong with the OS running under qeum -no-quit, you can still just (x)kill qemu. Simple. Any comments ? -- ############################################ Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: gnata@obs.univ-lyon1.fr ############################################