From: Andreas Färber Date: Sun, 13 Dec 2009 01:49:57 +0000 (+0100) Subject: Cocoa: Suppress window resize animation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=123810851e24aa6dc928faeb055cb82dcb153674;p=qemu.git Cocoa: Suppress window resize animation 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 Signed-off-by: malc --- diff --git a/cocoa.m b/cocoa.m index 57dcff8147..bb4325ce0b 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;