aboutsummaryrefslogtreecommitdiffstats
path: root/cocoa.m
diff options
context:
space:
mode:
authorAndreas Färber <andreas.faerber@web.de>2009-12-13 02:49:57 +0100
committermalc <av1474@comtv.ru>2010-01-07 10:57:34 +0300
commit123810851e24aa6dc928faeb055cb82dcb153674 (patch)
treecb82ccb42c19c2ce944667c13014c53a775a7c85 /cocoa.m
parent41ea49b328ef0fa292574af719f92de14b28304d (diff)
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 <andreas.faerber@web.de> Cc: Juha Riihimäki <juha.riihimaki@nokia.com> Cc: Alexander Graf <alex@csgraf.de> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'cocoa.m')
-rw-r--r--cocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa.m b/cocoa.m
index 57dcff814..bb4325ce0 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;