9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Hide devdraw?
@ 2011-12-19  9:55 Brian Vito
  2011-12-19 13:18 ` david jeannot
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Vito @ 2011-12-19  9:55 UTC (permalink / raw)
  To: 9fans

Are there plans to add a "Hide devdraw"/Command-H function to devdraw
on Mac OS X? I'd add it if I could, but I'm not a programmer (just a
user of sam).



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] Hide devdraw?
  2011-12-19  9:55 [9fans] Hide devdraw? Brian Vito
@ 2011-12-19 13:18 ` david jeannot
  0 siblings, 0 replies; 2+ messages in thread
From: david jeannot @ 2011-12-19 13:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 927 bytes --]

> Are there plans to add a "Hide devdraw"/Command-H
> function to devdraw on Mac OS X?

You can patch
$PLAN9/src/cmd/devdraw/cocoa-screen.m:/^makemenu
this way:

i = [[NSMenuItem alloc] initWithTitle:@"Full Screen"
action:@selector(calltogglefs:)
keyEquivalent:@"f"];
[m addItem:i];
[i release];

+ i = [[NSMenuItem alloc] initWithTitle:@"Hide"
+ action:@selector(hide:)
+ keyEquivalent:@"h"];
+ [m addItem:i];
+ [i release];
+
i = [[NSMenuItem alloc] initWithTitle:@"Quit"
action:@selector(terminate:)
keyEquivalent:@"q"];
[m addItem:i];
[i release];

(I thought that the option "double-click a window's
title bar to minimize" was sufficient, and, as I
was often pressing "cmd+H" by mistake, I thought
that I will wait for the first complaint before to
add this feature.)

This change should appear in the next weeks.

(If you prefer a Devdraw binary, Brian, feel free
to send me an email.)

[-- Attachment #2: Type: text/html, Size: 2361 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-19 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-19  9:55 [9fans] Hide devdraw? Brian Vito
2011-12-19 13:18 ` david jeannot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).