Statistics
| Branch: | Revision:

root / cocoa.m @ 3c7b48b7

History | View | Annotate | Download (37.1 kB)

# Date Author Comment
41ea49b3 01/07/2010 09:57 am Andreas Färber

Cocoa: Shutdown when window is closed

The application is not very useful once the guest window is closed.
QEMU is not a document-based application; terminating it automatically
saves the user another action and resembles SDL behavior.

v2:
- Use delegate method, suggested by Juha Riihimäki....

12381085 01/07/2010 09:57 am Andreas Färber

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 <>...

561ef251 01/07/2010 09:57 am Andreas Färber

Cocoa: Use optimized drawing for the window

Default is NO.

Signed-off-by: Andreas Färber <>
Signed-off-by: malc <>

fd10a04e 01/07/2010 09:57 am Andreas Färber

Cocoa: Silence type warning

Add const for "qemu" character literal, to avoid:

warning: initialization discards qualifiers from pointer target type

An earlier patch by John proposed to use char5. Since we do not modify
the text and later copy it into malloc'ed memory, marking it as const...

38ec7b53 01/07/2010 09:57 am Andreas Färber

Cocoa: Fix compilation on Mac OS X v10.4 and earlier

NSView's enterFullScreenMode:withOptions: and
exitFullScreenModeWithOptions: are available on v10.5
and later only. Undefined methods raise warnings and
undefined constants result in errors.

Reported by Ryan Schmidt....

d50f71dc 01/07/2010 09:57 am Andreas Färber

Cocoa: Mark the View as opaque

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 <>...

17ccbc27 01/07/2010 09:57 am Andreas Färber

Cocoa: Redraw the View asynchronously

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 <>...

f4918804 01/07/2010 09:57 am Andreas Färber

Cocoa: Don't unconditionally show the window

When QEMU was launched in no-graphic, Curses or VNC mode,
don't run it as a Cocoa application.

Based on patch by Alexander Graf.

v1:
- Avoid type mismatch warning for argv
- Drop noCocoa variable
- Coding Style changes...

44e4c0ba 01/07/2010 09:57 am Andreas Färber

Cocoa: ppc64 host support

Fix integer usage in the Cocoa backend: NSInteger is long on LP64.

http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/doc/uid/20000014-BBCFHHCD...

77047bb7 01/07/2010 09:57 am Andreas Färber

Cocoa: Silence warning for cocoa_keycode_to_qemu

Make cocoa_keycode_to_qemu static, to avoid:

warning: no previous prototype for ‘cocoa_keycode_to_qemu’

Signed-off-by: Andreas Färber <>
Cc: John Arbuckle <>...

04afa4a8 01/07/2010 09:57 am Andreas Färber

Cocoa: Silence warning on Big Endian host

LITTLE_ENDIAN is undefined on Big Endian host.

Signed-off-by: Andreas Färber <>
Cc: John Arbuckle <>
Signed-off-by: malc <>

9794f74f 03/04/2009 09:25 pm aliguori

Update cocoa.m to match new DisplayState code (Samuel Benson)

Version 2 does as follows:

[1]: Corrects endianness on issues by using native BGR to RGB conversion
[2]: Uses DisplayState accessors for obtaining graphics context information,
which
[3]: Removes now unused variables, and...

b94ed577 03/10/2008 09:34 pm aurel32

Let the USB tablet reach the far bottom and right pixels

(Samuel Thibault)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4036 c046a42c-6fe2-441c-8c8c-71466251a162

c304f7e2 01/23/2008 01:25 am ths

Core Graphics support (cocoa.m rewrite), by Mike Kronenberg.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3929 c046a42c-6fe2-441c-8c8c-71466251a162

87ecb68b 11/17/2007 07:14 pm pbrook

Break up vl.h.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3674 c046a42c-6fe2-441c-8c8c-71466251a162

3b46e624 09/17/2007 11:09 am ths

find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3177 c046a42c-6fe2-441c-8c8c-71466251a162

5fafdf24 09/17/2007 12:08 am ths

find -type f | xargs sed -i 's/[\t ]$//g' # on most files

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3173 c046a42c-6fe2-441c-8c8c-71466251a162

b29169d2 06/10/2007 07:07 pm blueswir1

Attempt to fix incorrect colours on some BGR displays

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2974 c046a42c-6fe2-441c-8c8c-71466251a162

5cbfcd00 06/14/2006 06:53 pm bellard

cocoa monitor fix regarding the handling of dead keys (Joachim Henke)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1975 c046a42c-6fe2-441c-8c8c-71466251a162

cae41b10 05/23/2006 12:25 am bellard

fix missing type declarations (Joachim Henke)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1932 c046a42c-6fe2-441c-8c8c-71466251a162

8606e5b4 04/16/2006 04:34 pm pbrook

Remove stray "}".

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1817 c046a42c-6fe2-441c-8c8c-71466251a162

95219897 04/09/2006 04:06 am pbrook

Allow multiple graphics devices.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1803 c046a42c-6fe2-441c-8c8c-71466251a162

7c206a75 12/18/2005 09:18 pm bellard

(Joachim Henke)
- suppress unwanted kernel logs
- avoids passing modifier keys to the guest OS when typing in the Monitor
- fixes the bug that the mouse cursor grab is released with any modifier key
(should be only ctrl+alt)
- removes some code redundancies...

87f48e6a 10/30/2005 08:24 pm bellard

fixed/full keyboard input - full mouse support - support for qemu console (Mike Kronenberg)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1582 c046a42c-6fe2-441c-8c8c-71466251a162

7a674b13 04/07/2005 11:36 pm bellard

accept more disk image extensions (David Still)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1359 c046a42c-6fe2-441c-8c8c-71466251a162

5a246934 04/07/2005 11:35 pm bellard

open the dialog box if an image was not selected from command-line (Pierre d'Herbemont)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1358 c046a42c-6fe2-441c-8c8c-71466251a162

da4dbf74 03/03/2005 12:22 am bellard

cocoa tiny fixes

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1322 c046a42c-6fe2-441c-8c8c-71466251a162

5b0753e0 03/01/2005 11:37 pm bellard

initial Cocoa support (Pierre d'Herbemont)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1313 c046a42c-6fe2-441c-8c8c-71466251a162