9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* plan9port OS X window labels
@ 2009-06-17  5:16 Russ Cox
  2009-06-17  5:24 ` [9fans] " Jeff Sickel
  2009-06-17 16:11 ` Russ Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Russ Cox @ 2009-06-17  5:16 UTC (permalink / raw)
  To: 9fans

I fixed a bug in plan9port's OS X window
label handling the other day, so that 9term
windows will update their labels properly
in response to awd.

Unfortunately it seems that the label update
must be done inside the application event loop,
but it originates outside the event loop.
For now I have made the event loop check for
updates and apply them, so the label changes
at the next keystroke or mouse event.
The obvious solution is to generate a fake event
that is either a no-op of an existing message
or that the event loop can recognize and discard,
just so that the event loop notices the window
label has changed.  However, I could not get this
to work.  Perhaps there are Carbon experts here
who will have better luck.

http://hg.pdos.csail.mit.edu/hg/plan9/rev/12502ec69b95

Thanks.
Russ


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

end of thread, other threads:[~2009-06-17 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17  5:16 plan9port OS X window labels Russ Cox
2009-06-17  5:24 ` [9fans] " Jeff Sickel
2009-06-17 15:41   ` David Leimbach
2009-06-17 16:11 ` Russ Cox

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).