Received: from eggs.gnu.org ([2001:4830:134:3::10]:35768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a14Eb-00050x-Ms for qemu-devel@nongnu.org; Mon, 23 Nov 2015 22:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a14EY-00018X-DF for qemu-devel@nongnu.org; Mon, 23 Nov 2015 22:25:37 -0500 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:35854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a14EY-00018O-8a for qemu-devel@nongnu.org; Mon, 23 Nov 2015 22:25:34 -0500 Received: by qkda6 with SMTP id a6so1372559qkd.3 for ; Mon, 23 Nov 2015 19:25:34 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Mon, 23 Nov 2015 22:25:32 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: Subject: Re: [Qemu-devel] [PATCH] ui/cocoa.m: Prevent activation clicks from going to guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel qemu-devel On Nov 23, 2015, at 11:06 AM, Peter Maydell wrote: > On 22 November 2015 at 01:43, Programmingkid = wrote: >> When QEMU is brought to the foreground, the click event that = activates QEMU >> should not go to the guest. Accidents happen when they do go to the = guest >> without giving the user a change to handle them. Buttons are clicked = accidently. >> Windows are closed accidently. Volumes are unmounted accidently. This = patch >> prevents these accidents from happening. >>=20 >> Signed-off-by: John Arbuckle >=20 > So, I checked how Parallels behaves (this is my go-to check for > "how should a native OSX VM window behave?"), and it works the > same way QEMU does -- left mouse clicks "click through" so they > both raise the window to the front and have the behaviour > indicated by the guest OS. But doesn't Parallels allow you to move the mouse pointer before = activating it?=20 QEMU requires the mouse to be grabbed before any movement can take=20 place. That makes moving the mouse pointer out of danger before an = activation click impossible.=