summaryrefslogtreecommitdiffstats
path: root/src/cmd/devdraw/cocoa-srv.c
Commit message (Collapse)AuthorAgeFilesLines
* devdraw: use consistent mac-* prefix on macOS filesRuss Cox2020-01-131-427/+0
| | | | We were using osx- and cocoa- but it's not even OS X anymore.
* devdraw: can use libthread directly now on macOSRuss Cox2020-01-131-1/+1
|
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-12/+12
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* libdraw,devdraw: fix compatibility with old 16x16 cursor protocol (#217)Fazlul Shahriar2019-04-051-0/+8
| | | | Some libraries that depend on devdraw don't know about 32x32 cursor -- mainly 9fans.net/go/draw.
* devdraw: add Cursor2 support on macOS 10.14 MojaveRuss Cox2018-11-151-4/+2
| | | | | This replaces the pixel-art scaling algorithm used for upscaling before. The results were not crisp enough to serve as everyday cursors.
* devdraw: rewrite the Cocoa screen using MetalXiao-Yong Jin2018-11-151-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* devdraw: use %R not Fn-F3 for retina toggleRuss Cox2012-11-251-1/+1
| | | | | R=rsc http://codereview.appspot.com/6854093
* devdraw: add forcedpi toggled by Fn+F3 on MacRuss Cox2012-11-251-0/+12
| | | | | R=rsc http://codereview.appspot.com/6846104
* devdraw: fix handling of compose key on OS XDavid Jeannot2012-01-161-1/+11
| | | | | | | | | | | This implementation is simpler to understand. It removes conflicts with other modifiers and with the virtual buttons. Pressing alt during a sequence now cancels it correctly. R=rsc CC=plan9port.codebot http://codereview.appspot.com/5507049
* cocoa devdraw: activation on receiving Ttop messagesDavid Jeannot2012-01-161-1/+1
| | | | | | | | | | | | (The new variable "willactivate" is in the input structure "in", which is illogical. But this structure will soon be renamed "app". I postpone the renaming to avoid conflicts with simultaneous Codereview issues.) R=rsc CC=plan9port.codebot http://codereview.appspot.com/5504102
* devdraw: more fixes (thanks David Jeannot)Russ Cox2011-10-121-2/+0
|
* devdraw: update Lion cocoaDavid Jeannot2011-09-191-1/+1
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5015042
* devdraw: draft cocoa supportDavid Jeannot2011-09-061-0/+397
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4974060