All of lore.kernel.org
 help / color / mirror / Atom feed
From: lists@haller-berlin.de (Stefan Haller)
To: gitster@pobox.com (Junio C Hamano)
Cc: git@vger.kernel.org, dsteffen@apple.com (Daniel A Steffen),
	das@users.sourceforge.net (Daniel A. Steffen)
Subject: Re: [PATCH] git-gui: Work around freeze problem with dialogs in Mac OS X
Date: Thu, 23 Sep 2010 09:39:06 +0200	[thread overview]
Message-ID: <1jp9mb7.wvga2l1g48z3oM%lists@haller-berlin.de> (raw)
In-Reply-To: <7vocbpsivd.fsf@alter.siamese.dyndns.org>

Junio C Hamano <gitster@pobox.com> wrote:

> lists@haller-berlin.de (Stefan Haller) writes:
> 
> > Tk 8.5 on Mac OS X has a bug whereby a dialog opened from a key
> > binding will hang; see issue 3044863 in the Tk issue tracker.
> > <http://sourceforge.net/tracker/?func=detail&aid=3044863&group_id=12997&atid=112997>
> >
> > To work around this, we perform commands that open a dialog after
> > a brief delay; 150 ms seems to be a good compromise between short
> > enough as to be not annoying, and long enough to reliably work
> > around the issue.
> >
> > Signed-off-by: Stefan Haller <stefan@haller-berlin.de>
> 
> Is 150ms applicable no matter how fast or slow your Mac is, or is Mac so
> monoculture that everybody's machine has more or less the same performance
> characteristics?  IOW does this need to be autoadjusted?

To be honest, I don't know.  I was hoping that Daniel could shed some
light on whether this is dependent on the machine's performance, or why
the delay is needed at all (i.e. why a simple "after idle" won't do, as
one would have expected).

> I see a lot of wrapping around foo::dialog; without knowing much about
> Tcl, I wonder if it would be simpler, less error prone and more future
> proof to add the wrapping logic around something commonly used from them,
> e.g. class::make_dialog.

I need to wrap the top-level entry points of the command handlers,
because we want the delay only when the command is invoked from a key
binding, not when a menu item is selected with the mouse, or a button is
pushed.  Inside the functions, at the place where the dialog is created,
I can't tell from where we were called.


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/

  reply	other threads:[~2010-09-23  7:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1283792854-45023-1-git-send-email-lists@haller-berlin.de>
2010-09-06 19:36 ` [RFC/PATCH] Force using Tcl/Tk 8.4 on Mac OS X Daniel A. Steffen
2010-09-07  7:19   ` Stefan Haller
2010-09-07 19:11   ` Pat Thoyts
2010-09-07 19:56     ` Stefan Haller
2010-09-11  7:12       ` Stefan Haller
2010-09-11  7:31       ` Stefan Haller
2010-09-21  8:26       ` [PATCH] git-gui: Work around freeze problem with dialogs in " Stefan Haller
2010-09-22 17:46       ` Stefan Haller
2010-09-22 19:01         ` Junio C Hamano
2010-09-23  7:39           ` Stefan Haller [this message]
2010-09-14  5:42   ` [RFC/PATCH] Force using Tcl/Tk 8.4 on " Stefan Haller

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=1jp9mb7.wvga2l1g48z3oM%lists@haller-berlin.de \
    --to=lists@haller-berlin.de \
    --cc=das@users.sourceforge.net \
    --cc=dsteffen@apple.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.