Received: from eggs.gnu.org ([2001:4830:134:3::10]:57500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrYdf-00056N-UJ for qemu-devel@nongnu.org; Sun, 10 May 2015 17:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrYdc-00017M-OM for qemu-devel@nongnu.org; Sun, 10 May 2015 17:19:55 -0400 Received: from mail-qc0-x22f.google.com ([2607:f8b0:400d:c01::22f]:35364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrYdc-00017G-Jr for qemu-devel@nongnu.org; Sun, 10 May 2015 17:19:52 -0400 Received: by qcbgu10 with SMTP id gu10so60569700qcb.2 for ; Sun, 10 May 2015 14:19:52 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Sun, 10 May 2015 17:19:49 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <3373B5D1-9559-4687-B137-4CFFF837521E@gmail.com> References: Subject: Re: [Qemu-devel] [PATCH v3] Fixes several full screen issues on Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel qemu-devel On May 10, 2015, at 3:13 PM, Peter Maydell wrote: > On 21 January 2015 at 19:25, Programmingkid = wrote: >> This patch makes several changes: >> - Minimizes distorted full screen display by respecting aspect >> ratios. >> - Makes full screen mode available on Mac OS 10.7 and higher. >> - Allows user to decide if video should be stretched to fill the >> screen, using a menu item called "Zoom To Fit". >> - Hides the normalWindow so it won't show up in full screen mode. >> - Allows user to exit full screen mode. >>=20 >> Signed-off-by: John Arbuckle >>=20 >> --- >> Changes in version 2: >> - Completely rewritten. >> - Eliminated depreciated API's. >> - Does not change host monitor resolution. >>=20 >> Change in version 3: >> - Fixed full screen window not receiving mouse moved events. >> @@ -1005,7 +1043,8 @@ int main (int argc, const char * argv[]) { >>=20 >> // View menu >> menu =3D [[NSMenu alloc] initWithTitle:@"View"]; >> - [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"Enter = Fullscreen" action:@selector(toggleFullScreen:) keyEquivalent:@"f"] = autorelease]]; // Fullscreen >> + [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"Enter = Fullscreen" action:@selector(doToggleFullScreen:) keyEquivalent:@"f"] = autorelease]]; // Fullscreen >> + [menu addItem: [[[NSMenuItem alloc] initWithTitle:@"Zoom To Fit" = action:@selector(zoomToFit:) keyEquivalent:@"f"] autorelease]]; >=20 > This creates two menu items with the same keyEquivalent, which > looks like a cut and paste error? It doesn't seem to me like > we need an accelerator for zoom-to-fit, so we can just make > that @"" instead I think. >=20 > Unless you'd rather do something else, I'm going to apply this > patch to my cocoa queue with that change and a couple of other > minor whitespace-formatting tweaks. >=20 > (Looking again at whether zoom-to-fit should be default, > I think I must have been deceived by the 1400x900 builtin > MBA screen being a nice multiple of the VGA screen size; > doing full-screen-zoomed on my other monitor looks much > worse. So I'm leaving that as you wrote it.) >=20 > Sorry it's taken me so long to get back to this. >=20 > thanks > -- PMM Thank you for reviewing my patch and correcting the double command-f = shortcut mistake.=20=