Received: from eggs.gnu.org ([2001:4830:134:3::10]:57849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBTAA-00017Q-Eg for qemu-devel@nongnu.org; Wed, 14 Jan 2015 13:59:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBTA6-0002Ba-CE for qemu-devel@nongnu.org; Wed, 14 Jan 2015 13:59:30 -0500 Received: from mail-qc0-x22e.google.com ([2607:f8b0:400d:c01::22e]:41692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBTA6-0002BQ-7e for qemu-devel@nongnu.org; Wed, 14 Jan 2015 13:59:26 -0500 Received: by mail-qc0-f174.google.com with SMTP id c9so8752340qcz.5 for ; Wed, 14 Jan 2015 10:59:25 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Wed, 14 Jan 2015 13:59:23 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <134B9C06-2137-4B1F-AB58-CB9695D40268@gmail.com> <1F8F46B9-22C1-4376-B773-D5A3B5B0C204@gmail.com> Subject: Re: [Qemu-devel] [PATCH] 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 Jan 14, 2015, at 1:29 PM, Peter Maydell wrote: > On 14 January 2015 at 18:18, Programmingkid = wrote: >>=20 >> On Jan 14, 2015, at 12:19 PM, Peter Maydell wrote: >>> (2) Having done this I find that all my other application windows >>> have been squashed down into a corner of my screen, presumably = because >>> we've told MacOSX "the screen is 640x480" and it's rearranged the >>> app windows to suit. We mustn't mess things up like this. >>=20 >> This can't be avoided. When the screen resolution changes, all the >> applications usually adjust to the new size. It is the same thing >> that happens when you use a full screen game. >=20 > No, when I use other full screen programs this doesn't happen at all. > QEMU with this patch is the first time I've ever seen this from > any OSX app. How long have you been a Mac user? I am shocked you have never seen this = before. I'm guessing full screen gaming was never your thing.=20 >=20 >>> (3) I managed to get at the underlying "QEMU" window with its title >>> bar somehow even when in full screen mode: I could move it about the >>> screen with the mouse... >>=20 >> Really? I think you said you had Mac OS 10.7. I don't have that, but >> I do have access to Mac OS 10.9. Just send me the instructions on how >> to reproduce this. >=20 > I run 10.9.5. I don't know exactly how I got to that window, > and I don't really want to mess about with this patch because > behaviour (2) above is so obnoxious. >=20 >>> (4) I get a lot of compile warnings for this patch: >>>=20 >=20 >> Disabling the depreciation warning would eliminate these errors. >=20 > Not all of them are deprecation warnings. Also I would prefer not > to disable deprecation warnings, as then we'll have no notice > of what might break on future OSX versions. I'm sure we will know exactly when a depreciated function isn't = implemented anymore. We will probably see some message in the Console. = Or a backtrace to a crash will show us where and when QEMU crashed. I = guess I could also use non-depreciated functions in the patch. The thing = is QEMU will determine what to use at runtime, so the depreciation = messages might not go away.=20 >=20 >>>> int w =3D surface_width(surface); >>>> int h =3D surface_height(surface); >>>> - /* cdx =3D=3D 0 means this is our very first surface, in which = case we need >>>> - * to recalculate the content dimensions even if it happens to = be the size >>>> - * of the initial empty window. >>>> - */ >>>> - bool isResize =3D (w !=3D screen.width || h !=3D screen.height = || cdx =3D=3D 0.0); >>>> - >>>> + bool isResize =3D (w !=3D screen.width || h !=3D = screen.height); >>>=20 >>> (6) This looks like you've just dropped a bug fix. How are you >>> dealing with this case if not by the method described in the >>> now-deleted comment? >>=20 >> If the guest does change its resolution, then we try to match it >> in the host. When I eliminated this code, it made the guest look >> so much better. I was actually able to read documents in the guest >> at full screen. >=20 > The point is that you've dropped a bugfix which isn't related to > full screen at all -- if this is the first call to switchSurface > we *must* display it, which is what the cdx check does. See > commit 381600dad. This bugfix does change the appearance of full screen mode. Have you = seen a guest at full screen? The cdx and cdy variables make the guest OS = look very distorted.=20