Commit graph

3458 commits

Author SHA1 Message Date
David du Colombier
ac2662695a dial(3): update dialparse
R=rsc
http://codereview.appspot.com/6455083
2012-08-03 19:58:31 +02:00
David Jeannot
9bcf137376 devdraw: make it 3 times faster on OS X
This patch reverts the recent patch named "devdraw: fix for OS X 10.8", and fixes redrawing on OSX 10.8 differently, making scrolling under Acme 3 times faster.

R=rsc, mirtchovski
CC=plan9port.codebot
http://codereview.appspot.com/6452087
2012-08-03 13:26:46 -04:00
Rob Kroeger
ad4025bd76 devdraw: fix for OS X 10.8 (Mountain Lion)
In MacOS 10.8, the NSBitmapImageRep class appears to cache the specified
image data at the time of construction. As a result updates to the
backing memimage object do not get pushed to the screen in flushimg.

This patch creates the NSBitmapImageRep object over again for each
flushimg which would appear to fix the problem.

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/6443063
2012-07-31 11:24:44 -04:00
David du Colombier
4ed8efea38 libventi: fix segfault in vtgetreq
Don't call vtlog() when _vtqrecv() returns
nil on queue hangup, as reported on
http://bitbucket.org/rsc/plan9port/issue/102/

R=rsc
http://codereview.appspot.com/6373046
2012-07-29 18:53:37 -04:00
Russ Cox
d2173bb552 disk/mkfs, disk/mkext: add from Plan 9
R=rsc, rsc
http://codereview.appspot.com/6405057
2012-07-17 19:10:45 -04:00
Russ Cox
f0add8ef24 9l: remove debug print
R=rsc
http://codereview.appspot.com/6402049
2012-07-16 10:43:03 -04:00
Russ Cox
20f5692b7f openbsd updates (thanks Pascal Stumpf)
R=rsc
http://codereview.appspot.com/6401049
2012-07-14 10:16:54 -04:00
Russ Cox
c934984537 libmach: remove debug print
R=rsc
http://codereview.appspot.com/6395048
2012-07-14 09:07:10 -04:00
Russ Cox
5f0bb59e0d 9l: fix for Linux 3.x (thanks Christopher Brannon)
R=rsc
http://codereview.appspot.com/6395047
2012-07-14 08:50:07 -04:00
Russ Cox
9d4f8bfecc auth/factotum: fix flush (thanks Erik Quanstrom)
R=rsc
http://codereview.appspot.com/6402044
2012-07-14 08:30:51 -04:00
Russ Cox
63550fce0e lib/codereview: update from Go
R=rsc
http://codereview.appspot.com/6396045
2012-07-14 08:01:47 -04:00
Russ Cox
7276d83b82 venti(8): fix discussion of variables
R=rsc
http://codereview.appspot.com/6397046
2012-07-14 08:01:15 -04:00
David du Colombier
d765c37110 lib9: fix openbsd build
Fix build error and warning on OpenBSD 5.1,
as reported by Dimitri Sokolyuk.

R=rsc
http://codereview.appspot.com/6350044
2012-06-27 20:02:03 +02:00
David du Colombier
3409bc9ae1 lib9/dial: add support for IPv6
The function p9dialparse() returns the host as a sockaddr_storage
structure instead of a u32int, to be able to handle both IPv4
and IPv6 addresses. Because the sockaddr_storage structure also
handle port numbers and Unix path names, there is no longer
need to set them in the calling functions. However, these values
are still returned for convenience.

The sockaddr_in and sockaddr_un structures have been replaced
by sockaddr_storage to handle Unix, IPv4 and IPv6 sockets.

Names and addresses are resolved using either gethostbyname()
or getaddrinfo() functions.

The getaddrinfo() function is documented in RFC2553 and standardized
since POSIX.1-2001. It supports both IPv4 and IPv6 addresses.
The gethostbyname() function is deprecated since POSIX.1-2008.
However, some libc implementations don't handle getaddrinfo()
properly, thus we preferred to try gethostbyname() first.

I've tried to preserve most of the old code logic to prevent
from surprising or unwanted behavior.

R=rsc
http://codereview.appspot.com/6255068
2012-06-02 21:50:59 +02:00
Russ Cox
5d03af6557 fix INSTALL warnings
R=rsc
http://codereview.appspot.com/6258060
2012-05-29 15:11:14 -04:00
Russ Cox
e42c27297a CONTRIBUTORS: add Abhishek Kulkarni
R=rsc
http://codereview.appspot.com/6258059
2012-05-29 15:10:26 -04:00
Abhishek Kulkarni
71ce470a2b venti: fix VtMaxLumpSize
R=rsc, adkulkar
CC=plan9port.codebot
http://codereview.appspot.com/6108047
2012-05-29 13:34:52 -04:00
Russ Cox
c149b06f2e plumb: remove debugging print
R=rsc
http://codereview.appspot.com/6210059
2012-05-15 10:55:53 -04:00
David du Colombier
4ded140a67 venti: remove bloomlookuptime in stats
R=rsc
http://codereview.appspot.com/6197057
2012-05-07 16:20:44 +02:00
David du Colombier
3f79d3ee64 venti: fix bloom in stats
R=rsc
http://codereview.appspot.com/6201049
2012-05-07 15:55:41 +02:00
David du Colombier
d117737d44 venti: fix writedonechan size in bloom
R=rsc
http://codereview.appspot.com/6128063
2012-05-02 06:44:38 +02:00
Russ Cox
e7e953b3da venti: add bootstrap mode (write + no index)
R=rsc, rsc
http://codereview.appspot.com/6097047
2012-04-22 15:27:06 -04:00
Russ Cox
a2df31f46d venti: fix typo
R=rsc
http://codereview.appspot.com/5989059
2012-04-07 15:40:06 -04:00
Russ Cox
20271fedfb venti: add arenapart support to wrarena
R=rsc
http://codereview.appspot.com/5988058
2012-04-07 15:38:59 -04:00
David du Colombier
b27a990f9f vacfs: remove 9P2000.u relic
R=rsc
http://codereview.appspot.com/5970072
2012-04-04 16:51:27 +02:00
David du Colombier
0ef37c14e1 venti(7): fix typo
R=rsc
http://codereview.appspot.com/5847060
2012-03-26 17:59:49 +02:00
Russ Cox
b8737b8ac4 fortune
R=rsc
http://codereview.appspot.com/5900076
2012-03-26 11:27:31 -04:00
David Jeannot
1f4c574440 devdraw: fix mouse warping with multi-monitor on OS X
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5748043
2012-03-05 21:14:34 -05:00
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