[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UI input unresponsive on macOS
From: |
Eli Zaretskii |
Subject: |
Re: UI input unresponsive on macOS |
Date: |
Fri, 17 Nov 2017 15:53:56 +0200 |
> Date: Thu, 16 Nov 2017 19:33:43 +0000
> From: Alan Third <address@hidden>
> Cc: Gong-Yi Liao 廖宮毅 <address@hidden>,
> Eli Zaretskii <address@hidden>, address@hidden,
> address@hidden
>
> > (make-thread
> > (lambda ()
> > (let (last-nonmenu-event)
> > (setq test (y-or-n-p-with-timeout "test" 2 'timeout)))))
> >
> > Athena: Works.
> > GTK+2: Timeout works, but buttons are not displayed.
> > GTK+3: Hangs.
> > NS: Crashes.
>
> I’m not sure how we could handle that on NS. Perhaps just refuse to
> display the dialogue at all, and return nil?
If you can detect this situation, it's possible. But silently
returning nil might not be a good idea, as it's hard to distinguish
that from normal return. How about displaying a warning? (You cannot
easily error out in a thread, so that's not a good option.)