Commits


devdraw: add /usr/X11R7 for NetBSD Fixes #362.


devdraw: refactor, clean up mac screen Also turn mac-srv.c into a generic srv.c, so we can remove the duplication with x11-srv.c.


devdraw: move per-window globals in mac-screen.m into Client


devdraw: move Client into devdraw.h and move global state in


devdraw: use consistent mac-* prefix on macOS files We were using osx- and cocoa- but it's not even OS X anymore.


devdraw: can use libthread directly now on macOS


devdraw: simplify mac file names Now that we only have Metal, we can drop the -metal. Also now that Carbon is gone we can drop the macargv.c, and then the -objc from object file names.


devdraw: drop pre-metal macOS support We didn't start using Metal until macOS 10.14, but it was available on 10.13, which is currently the oldest Apple-supported version of macOS. Simplify by deleting the old code.


devdraw: remove os x 10.5 compatibility code


devdraw: rewrite the Cocoa screen using Metal Add a new macOS cocoa screen, cocoa-screen-metal.m. Rewrite the macOS cocoa drawing code to use the builtin runloop, and use Metal to push pixels with CAMetalLayer. Remove all of the deprecated code, and simplify some of the logic. Modify mkwsysrules.sh such that the new code is used only when the system version is equal or higher than 10.14. Allow touch events to simulate mouse clicks: three finger tap for the middle mouse button; four finger tap for the 2-1 chord. Support Tresize. Scale 16x16 Cursor up to 32x32 with an EPX algorithm. Support macOS input sources including the basic dead keys and the advanced CJK input methods. Increase the communication buffers in cocoa-srv.c to allow more input, especially for long sentences prepared by the macOS input souces.


fontsrv: fix build on OpenBSD 5.2 R=rsc CC=plan9port.codebot https://codereview.appspot.com/6850108


Cocoa Devdraw: cursor fix R=rsc CC=plan9port.codebot http://codereview.appspot.com/5356050


devdraw: cocoa fixes, bigarrow support (thanks Marius Eriksen)


devdraw: cleanup, fix macargv


devdraw: disable Lion warning R=rsc http://codereview.appspot.com/5132045