From patchwork Wed Jan 6 22:47:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [v2,RESEND,06/11] Cocoa: Mark the View as opaque From: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 42350 Message-Id: <1262818037-926-7-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:12 +0100 Default is NO. Cf. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CustomViews.html 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 | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/cocoa.m b/cocoa.m index 6f8b674..dc9263a 100644 --- a/cocoa.m +++ b/cocoa.m @@ -305,6 +305,11 @@ static int cocoa_keycode_to_qemu(int keycode) [super dealloc]; } +- (BOOL) isOpaque +{ + return YES; +} + - (void) drawRect:(NSRect) rect { COCOA_DEBUG("QemuCocoaView: drawRect\n");