9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: 9fans <9fans@9fans.net>
Subject: plan9port OS X window labels
Date: Tue, 16 Jun 2009 22:16:19 -0700	[thread overview]
Message-ID: <dd6fe68a0906162216m2797d6beoce4e5eb9725cee61@mail.gmail.com> (raw)

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


             reply	other threads:[~2009-06-17  5:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-17  5:16 Russ Cox [this message]
2009-06-17  5:24 ` [9fans] " Jeff Sickel
2009-06-17 15:41   ` David Leimbach
2009-06-17 16:11 ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd6fe68a0906162216m2797d6beoce4e5eb9725cee61@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).