Commit graph

136 commits

Author SHA1 Message Date
David Jeannot
a319037781 Devdraw now waits for the image: this means that
there is no more blank image when toggling
fullscreen, when unminimizing, or at startup; this
also means that we can live resize, but we only
enable live resizing with Page, because it seems
useless for other apps, and Acme and Sam bug with
it. The tradeoff is that bottom corners are
sometimes automatically rounded. There is a way to
prevent the rounding here:
http://parmanoir.com/Custom_NSThemeFrame
but this would obfuscate the code. Instead, we
make sure that the corners are always rounded.

Closing the window while its content is updated
causes an exception, without this patch. This
seems to happen regularly with stats(1).

This patch avoids a possible deadlock at startup,
which I never experienced. If I recollect right,
there is little chance that this happens on a
multi-core CPU.

Minimizing now activates next app in line, and
Devdraw now stops drawing while minimized.

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5499043
2012-03-05 15:54:26 -05:00
David Jeannot
7e2a1983e7 devdraw: fix winsize (-W) on OS X
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5749043
2012-03-05 15:38:59 -05:00
Russ Cox
354c6c32f1 devdraw: fix fullscreen on Lion
Now, if you full-screen an app running on a secondary
screen, it only takes over that monitor.  It does not cause
the primary screen to disappear.

Code by David Jeannot.

R=djeannot24
http://codereview.appspot.com/5708046
2012-02-28 14:56:13 -05:00
David Jeannot
f4792e43ae devdraw: enable gestures on OS X
Remove swipe gestures.
Keep only 2-finger pinching and 3-finger tapping.

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5498094
2012-01-20 22:31:00 -05:00
David Jeannot
fcce05982b devdraw: make OS X resizer unobtrusive
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5558051
2012-01-19 15:14:17 -05:00
David Jeannot
4464a8778d devdraw: on OS X, add menu items "hide" and "plumb devdraw(1)"
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5505092
2012-01-16 17:12:10 -05:00
David Jeannot
10ccf8df0c devdraw: OS X: neutralize menu and Dock bugs in fullscreen mode
Previously, the menu bar has been set to hidden
instead of autohidden in fullscreen mode, because
it appeared too easily.  Occasionally however, it
still appears.  This patch makes sure it won't.

With OS X Lion's fullscreen, the Dock is
autohidden, but sometimes remains hidden.  This
bug comes with visual menu bar bugs
during space transition and when exiting
fullscreen.  Those bugs happen after each
Devdraw's activation, for example.  This patch
neutralizes them.

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5502091
2012-01-16 17:11:36 -05:00
David Jeannot
73b0f029e1 devdraw: fix handling of compose key on OS X
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
2012-01-16 17:08:31 -05:00
David Jeannot
a995f469b3 devdraw: remove old OS X code
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5528046
2012-01-16 17:07:24 -05:00
David Jeannot
e89a71ffdd cocoa devdraw: activation on receiving Ttop messages
(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
2012-01-16 17:04:28 -05:00
David Jeannot
5ec2425b17 devdraw: OS X dead key support
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5503086
2012-01-16 17:02:06 -05:00
David Jeannot
ca81de0ae1 Cocoa Devdraw: cursor fix
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5356050
2011-12-09 22:21:09 -05:00
David Jeannot
e067d2ea1f Cocoa Devdraw: cursor, menu bar, old fs, activation
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5318054
2011-11-08 13:23:55 -05:00
Russ Cox
b4d0ac9612 devdraw: cocoa fixes, bigarrow support (thanks Marius Eriksen) 2011-10-23 18:47:29 -04:00
Russ Cox
813b3eea8b OS X PowerPC fixes (thanks Cameron Kaiser) 2011-10-23 17:55:23 -04:00
Russ Cox
d0a596c5c8 devdraw: more fixes (thanks David Jeannot) 2011-10-12 13:40:35 -04:00
Russ Cox
7064acbd10 devdraw: cleanup, fix macargv 2011-10-12 13:18:32 -04:00
David Jeannot
7479a49b90 devdraw: fix screen grabber, allocation warning
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5170041
2011-10-03 18:16:09 -04:00
Justin Davis
4b58d45707 devdraw: do not interpret alt-tab as alt for compose
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5132050
2011-09-28 14:11:32 -04:00
Russ Cox
6135b41c7d devdraw: disable Lion warning
R=rsc
http://codereview.appspot.com/5132045
2011-09-26 09:31:19 -07:00
Russ Cox
2860591b68 use cocoa on snow leopard
R=rsc
http://codereview.appspot.com/5146043
2011-09-26 09:27:55 -07:00
David Jeannot
513ce18d64 devdraw: cocoa updates
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5131041
2011-09-26 08:19:56 -07:00
Russ Cox
8bc80ada76 devdraw: handle, warn about Lion
R=rsc
http://codereview.appspot.com/5069042
2011-09-19 09:17:38 -04:00
David Jeannot
48107872ba devdraw: update Lion cocoa
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5015042
2011-09-19 08:58:59 -04:00
David Jeannot
a287dbab23 devdraw: draft cocoa support
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4974060
2011-09-06 10:10:43 -04:00
Marius Eriksen
5e83be0dbf devdraw: dynamic discovery of MultiTouch devices
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4653041
2011-06-20 14:14:53 -04:00
David Swasey
e055ceb20b devdraw: Shrinking a window on osx 10.6.7 no longer disables drawing.
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4632051
2011-06-20 14:11:21 -04:00
Eoghan Sherry
42ef984cf2 mklatinkbd: fix buffer overflow
Fixes #71.

R=rsc
CC=codebot
http://codereview.appspot.com/4327057
2011-04-04 15:46:58 -04:00
Jeff Sickel
cbcec5adb9 devdraw: fix flashing during window drag
R=rsc
CC=codebot
http://codereview.appspot.com/3922043
2011-01-12 00:54:22 -05:00
Russ Cox
2bde567347 mklatinkbd: fix out of bounds bug
R=rsc
http://codereview.appspot.com/3828045
2011-01-02 18:31:50 -05:00
Russ Cox
b567422f98 keyboard(7): document X compose sequences
Add -x flag to mklatinkbd to generate file for $HOME/.XCompose.

Thanks to Anthony Martin, Tony Lainson, and Kris Maglione for legwork.

R=rsc
http://codereview.appspot.com/3811043
2011-01-02 15:39:09 -05:00
Russ Cox
de2d77683e mkfiles: fix macargv buf
R=rsc
http://codereview.appspot.com/2729042
2010-10-27 19:40:16 -07:00
Russ Cox
afea5fc3fd mac: add 9term.app, Plumb.app
R=rsc
http://codereview.appspot.com/2783041
2010-10-27 18:22:03 -07:00
Russ Cox
4e2602a754 devdraw: snarf better with Chrome
maybe the code is also actually correct.  who knows.

R=rsc
http://codereview.appspot.com/1875045
2010-07-22 13:52:56 -07:00
Russ Cox
f50c3e956f devdraw: only one flushproc, please (OS X)
R=rsc
http://codereview.appspot.com/799045
2010-04-02 14:53:13 -07:00
Eoghan Sherry
d94cc62a01 devdraw: fix mouse(3) moveto on OS X
R=rsc
CC=codebot
http://codereview.appspot.com/224104
2010-03-03 18:11:36 -08:00
Russ Cox
28afa898ee devdraw: fix support for multitouch trackpads
R=rsc
http://codereview.appspot.com/203059
2010-02-06 22:16:46 -08:00
Anthony Sorace
ecb01acac3 R=rsc
CC=codebot
http://codereview.appspot.com/193056
2010-01-26 12:48:31 -08:00
Russ Cox
a61c69337c devdraw: fix OS X resize bug caused by redraw bug fix
R=rsc
http://codereview.appspot.com/189104
2010-01-16 12:23:13 -08:00
Russ Cox
7d419a1421 devdraw: fewer spurious mouse clicks in OS X multitouch
Was turning all button touches into clicks of high
buttons, causing spurious clicks even outside the
app window.

R=rsc
http://codereview.appspot.com/189084
2010-01-15 00:01:12 -08:00
Russ Cox
fb243a134d devdraw: handle kEventWindowDrawContent
makes windows redraw properly when moved
between screens when monitors get shuffled around

R=
CC=
http://codereview.appspot.com/189076
2010-01-14 13:47:19 -08:00
Russ Cox
7d9c0f0f0e devdraw: release multitouch mouse when app is collapsed (minimized)
R=rsc
CC=plalonde, r
http://codereview.appspot.com/181129
2010-01-04 21:25:07 -08:00
Russ Cox
100ec44e51 devdraw: add multitouch code from Paul Lalonde
Various tweaks to avoid breaking standard mice,
but probably needs tweaks to work with multitouch
mice again.  Still, it's a start.

R=rsc
CC=plalonde, r
http://codereview.appspot.com/181124
2010-01-04 10:23:35 -08:00
Enrique Soriano
8e692500d3 devdraw: fix OS X behavior for Spanish keyboards
R=rsc_swtch, rsc
CC=old.codebot, codebot
http://codereview.appspot.com/132045
2009-11-30 12:44:57 -08:00
Jeff Sickel
113867b836 devdraw: draft of new Cocoa-based devdraw
Can test with
	cd $PLAN9/src/cmd/devdraw
	mk devdraw-cocoa
	DEVDRAW=devdraw-cocoa colors
2009-09-29 09:35:23 -07:00
Russ Cox
5028118068 devdraw: fix X11 input sequences
fixes http://groups.google.com/group/plan9port-dev/t/f865adc9a520653a
see also http://archive.netbsd.se/?ml=plan9-9fans&a=2007-03&t=3328886

http://codereview.appspot.com/117072
2009-09-14 17:23:37 -04:00
Russ Cox
5d0dfbb05a devdraw: update OS X snarf for 32-bit Rune (again)
fixes #29 http://code.swtch.com/plan9port/issues/29/

The accidental resubmission of the patch caused
patch(1) to revert the patch.  Thanks, patch authors!

http://codereview.appspot.com/117057
2009-09-12 19:50:55 -04:00
Russ Cox
dd73705611 devdraw: update OS X snarf for 32-bit Rune
fixes #29 http://code.swtch.com/plan9port/issues/29/

http://codereview.appspot.com/117057
2009-09-12 19:38:54 -04:00
Russ Cox
6ad2891094 devdraw: update OS X snarf for 32-bit Rune
http://codereview.appspot.com/117057
2009-09-12 19:32:04 -04:00
Michael Teichgräber
bb7ff349fb devdraw: generate Latin-1 table from lib/keyboard 2009-07-08 08:34:42 -07:00