Commit graph

3280 commits

Author SHA1 Message Date
Russ Cox
4a000a28d3 merge 2012-03-05 16:36:31 -05:00
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
ce26c36433 get9root(3): fix paths
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5745043
2012-03-05 15:39:06 -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
Russ Cox
443d628838 libmach, acid, db: 64-bit support 2012-02-19 18:11:39 -05:00
David du Colombier
60d96f2e43 venti: import venti/conf from plan 9
R=rsc
http://codereview.appspot.com/5572066
2012-01-26 17:33:36 +01:00
David du Colombier
83b247a771 libventi: add functions vtsha1 and vtsha1check
These functions are equivalent to vtSha1 and vtSha1Check
from the old libventi and are particularly used by Fossil.

R=rsc
http://codereview.appspot.com/5555064
2012-01-21 10:01:20 +01: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 du Colombier
5d434a3ff3 venti: fix settings in stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5558054
2012-01-20 13:13:30 -05:00
Russ Cox
5c9343753f codereview: sync from Go
R=rsc
http://codereview.appspot.com/5558060
2012-01-20 13:10:09 -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 du Colombier
68e24566b6 vac: fix segfault on DMSYMLINK or DMDEVICE
Fix segfault when the first archived file is DMSYMLINK or DMDEVICE.
Reinitialize the buffer to zero before calling readlink.

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5500097
2012-01-16 17:06:41 -05:00
David Jeannot
258cfab2fe acme: claim input focus earlier
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5505091
2012-01-16 17:05:39 -05:00
David Jeannot
8423a43814 Plumb.app: prevent the Finder's activation after Devdraw's
The Finder can be reactivated after Devdraw's
activation if both windows are on the same space.

We prevent this by preventing Plumb.app's
activation in the first place.

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5498096
2012-01-16 17:04:52 -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 du Colombier
131ab3addb venti: fix scacheprefetch stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5507045
2012-01-16 16:55:23 -05:00
David Jeannot
9a201244bf ioproc(3): fix prototypes
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5500090
2012-01-16 16:54:00 -05:00
David du Colombier
fc638f7bd4 libventi: handle rpc when not connected
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5491051
2012-01-16 16:53:08 -05:00
Russ Cox
d33a4d7f1b fmt: delete 2-space code
Typographers say its wrong.

R=rsc
http://codereview.appspot.com/5517046
2012-01-05 01:02:44 -05:00
David du Colombier
73392c2c7c libventi: fix segfault in vtreadpacket when not connected
This problem happens especially in fossil/view when vtread
can be called even if not connected to venti.

The old libventi handle this case properly in the function vtRPC, which is called by vtReadPacket (client.c).

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5484044
2011-12-12 16:44:50 -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
Russ Cox
37234309e5 fortunes
R=rsc
http://codereview.appspot.com/5480055
2011-12-09 17:48:46 -05:00
David du Colombier
c2b544f8cd vac: handle mid
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5451114
2011-12-07 14:07:25 -05:00
David du Colombier
e80159c932 aescbc: fix segfault on backspace
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5440107
2011-12-07 12:27:07 -05:00
David du Colombier
aac05c4092 vacfs: fix segfault when no prefix specified
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5451052
2011-11-30 15:20:43 -05:00
Rob Kroeger
83a5aba766 mac Plumb: skip loading non-existent .bashrc
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5434052
2011-11-28 10:09:26 -05:00
David du Colombier
0c9524b721 mailfs: add -u user argument
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5435052
2011-11-28 09:21:01 -05:00
David du Colombier
2fc68b6d8e mailfs: small fixes and plan 9 support
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5429044
2011-11-22 14:09:52 -05:00
David du Colombier
bd51695c92 venti/mgr: various fixes and plan 9 support
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5421047
2011-11-21 11:00:36 -05:00
David du Colombier
1d752a8479 venti: fix log url in stats
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5395043
2011-11-21 08:40:34 -05:00
David du Colombier
38bcdc42b5 upas: fix segfault when host not found
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5370105
2011-11-21 08:40:17 -05:00
Sean McKean
81c30b5a75 acme: fix arrow near end of text
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5399050
2011-11-17 14:46:14 -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
David du Colombier
1e0c038342 venti: import changes from plan 9
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5325044
2011-11-08 11:48:18 -05:00
David du Colombier
91b0ee088e libventi: add VtEntryNoArchive from liboventi, for use with fossil
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5298088
2011-11-08 11:46:49 -05:00
Russ Cox
338bd4bb79 codereview: update from go
R=rsc
http://codereview.appspot.com/5340059
2011-11-08 09:03:05 -05:00
David du Colombier
db60da46b3 venti: fix vtcachealloc and VtMaxLumpSize
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5309073
2011-11-08 09:02:36 -05:00
David du Colombier
4544da5200 libventi: add functions reconn and redial for use with fossil
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5325046
2011-11-08 09:02:31 -05:00
David du Colombier
36c242dd86 venti: fix format on ulong
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5328046
2011-11-08 09:02:28 -05:00
David du Colombier
11758776a1 man: update venti-cache(3)
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5329041
2011-11-08 09:02:24 -05:00
Russ Cox
519fe61375 rc(1): remove FreeBSD version 2011-10-31 09:31:21 -04:00
Russ Cox
b763f1e0b8 page(1): mention ghostscript, /dev/fd 2011-10-31 09:31:13 -04:00
Russ Cox
c383979b01 page: check for gs failure 2011-10-25 12:55:09 -04:00
Russ Cox
b4d0ac9612 devdraw: cocoa fixes, bigarrow support (thanks Marius Eriksen) 2011-10-23 18:47:29 -04:00