Cocoa: Suppress window resize animation
authorAndreas Färber <andreas.faerber@web.de>
Sun, 13 Dec 2009 01:49:57 +0000 (02:49 +0100)
committermalc <av1474@comtv.ru>
Thu, 7 Jan 2010 07:57:34 +0000 (10:57 +0300)
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>
cocoa.m

diff --git a/cocoa.m b/cocoa.m
index 57dcff8147b8ce5b56380a55a7697dc9f35d4cd8..bb4325ce0b6ef75e61e9c0eafae0dcc5e7c146a2 100644 (file)
--- 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;