From patchwork Wed Jan 6 22:47:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [v2,RESEND,10/11] Cocoa: Suppress window resize animation From: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 42361 Message-Id: <1262818037-926-11-git-send-email-andreas.faerber@web.de> To: qemu-devel@nongnu.org Cc: Mike Kronenberg , Alexander Graf , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= Date: Wed, 6 Jan 2010 23:47:16 +0100 Disable the nice resize animation, to avoid drawing glitches following a guest's screen size change. Based on patch by Juha Riihimäki. Signed-off-by: Andreas Färber Cc: Juha Riihimäki Cc: Alexander Graf Cc: Mike Kronenberg --- cocoa.m | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cocoa.m b/cocoa.m index 57dcff8..bb4325c 100644 --- a/cocoa.m +++ b/cocoa.m @@ -419,7 +419,7 @@ static int cocoa_keycode_to_qemu(int keycode) } else { if (qemu_name) [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s", qemu_name]]; - [normalWindow setFrame:NSMakeRect([normalWindow frame].origin.x, [normalWindow frame].origin.y - h + screen.height, w, h + [normalWindow frame].size.height - screen.height) display:YES animate:YES]; + [normalWindow setFrame:NSMakeRect([normalWindow frame].origin.x, [normalWindow frame].origin.y - h + screen.height, w, h + [normalWindow frame].size.height - screen.height) display:YES animate:NO]; } screen.width = w; screen.height = h;