macOS Cocoa title bar covers top of VM screen
Host environment
- Operating system: macOS Sonoma 14.2.1
- OS/kernel version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
- Architecture: ARM64
- QEMU flavor: qemu-system-x86_64, qemu-system-i386, qemu-system-m68k
- QEMU version: QEMU emulator version 8.2.0
- QEMU command line: ~/bin/qemu-system-m68k -M q800 -display cocoa -g 800x600x24 -bios MacOS8/Quadra800.rom -m 256 -drive file=MacOS8/pram-macos.img,format=raw,if=mtd -device scsi-hd,scsi-id=0,drive=hd1 -drive file=MacOS8/MacOS7HD.qcow2,format=qcow2,if=none,id=hd1 -name "MacOS 8" -rtc base=localtime
Emulated/Virtualized environment
- Operating system: Windows XP, MacOS 8, Windows 98
- OS/kernel version: Latest versions of all operating systems
- Architecture: x86, m68k, x86
Description of problem
When using the Cocoa interface the title bar covers the top part of the VM screen. In Windows XP, using show-cursor=on and USB tablet (-usb -device usb-tablet,bus=usb-bus.0), the mouse cursor seems to be off by the height of the title bar; to click on a target the mouse cursor has to be below the target by about the height of the top bar.
Steps to reproduce
- Run Qemu using the Cocoa-interface (-display cocoa)
Additional information
The problem exists in both Qemu 8.2.0 (compiled from source) as well as in the MacPorts version (version 8.0.5). Further testing shows the same problem in versions 6.2.0, 7.0.0, and 7.1.0. This problem did not exist in previous versions of macOS.
For similar reports, see: https://www.emaculation.com/forum/viewtopic.php?p=77350#p77350 and https://github.com/phil-opp/blog_os/issues/1249#issuecomment-1825933581 and https://68kmla.org/bb/index.php?threads/a-self-contained-qemu-based-a-ux-system-for-macos.45106/post-504970
The problem exists on both Apple Silicon and Intel hardware.