From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B3lWE-0008Ua-EB for qemu-devel@nongnu.org; Wed, 17 Mar 2004 19:36:18 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B3lVg-0008FS-HS for qemu-devel@nongnu.org; Wed, 17 Mar 2004 19:36:16 -0500 Received: from [195.141.226.27] (helo=netline-mail1.netline.ch) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B3lVf-0008E0-Hp for qemu-devel@nongnu.org; Wed, 17 Mar 2004 19:35:43 -0500 Received: from 10.0.1.2 (unverified [80.218.116.74]) by netline-mail1.netline.ch (Rockliffe SMTPRA 4.5.6) with ESMTP id for ; Thu, 18 Mar 2004 01:31:09 +0100 Subject: Re: [Qemu-devel] Re: SDL_GRAB problem From: Michel =?ISO-8859-1?Q?D=E4nzer?= In-Reply-To: <1079560165.16836.1531.camel@rapid> References: <20040317201432.GA4510@linux-m68k.org> <1079560165.16836.1531.camel@rapid> Content-Type: text/plain; charset=UTF-8 Message-Id: <1079570136.7054.24.camel@thor.asgaard.local> Mime-Version: 1.0 Date: Thu, 18 Mar 2004 01:35:36 +0100 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 On Wed, 2004-03-17 at 22:49, J. Mayer wrote: > On Wed, 2004-03-17 at 22:03, Sami Haahtinen wrote: > > Richard Zidlicky wrote: > > > the usual grab agony: something goes wrong at the wrong time and > > > X is completely unusable. > > > > My X is currently stuck in this state. > > > > > No idea what exactly went wrong this time - luckilly ctrl-alt-f2 saved me. > > > > For me, qemu crashed while focus was grabbed. Also ctrl-alt-backspace is > > a handy command (use with caution, kills your X without asking twice) > > > > > Very unpleasant problem, should be fixed or avoided no matter how. > > > > I agree with you, it would ease the situation if there was a tool to > > ungrab X, but i don't know of any... >>From the XF86Config-4 manpage, about the ServerFlags section: Option "AllowDeactivateGrabs" "boolean" This option enables the use of the Ctrl+Alt+Keypad‐Divide key sequence to deactivate any active keyboard and mouse grabs. Default: off. [...] Note that the options AllowDeactivateGrabs and AllowClosedown‐ Grabs will allow users to remove the grab used by screen saver/locker programs. An API was written to such cases. If you enable this option, make sure your screen saver/locker is updated. > The solution I found is to relaunch qemu, grab then ungrab the focus and > I get my X usable. > Qemu should do sthg to leave SDL in a proper way when it crashes... Strictly speaking, it may be an X server bug that the grab persists when the client goes away. -- Earthling Michel Dänzer | Debian (powerpc), X and DRI developer Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer