qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 10/11] Cocoa: Suppress window resize animation


From: Andreas Färber
Subject: [Qemu-devel] [PATCH 10/11] Cocoa: Suppress window resize animation
Date: Sun, 13 Dec 2009 03:55:40 +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 <address@hidden>
Cc: Juha Riihimäki <address@hidden>
Cc: Alexander Graf <address@hidden>
Cc: Mike Kronenberg <address@hidden>
---
 cocoa.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cocoa.m b/cocoa.m
index 09ed3cd..7179151 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;
-- 
1.6.5.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]