[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32864: 26.1; menus don't work correctly in Mac OS Mojave
From: |
Mattias Engdegård |
Subject: |
bug#32864: 26.1; menus don't work correctly in Mac OS Mojave |
Date: |
Mon, 3 Jun 2019 20:52:00 +0200 |
3 juni 2019 kl. 20.20 skrev Eli Zaretskii <eliz@gnu.org>:
>>
>> Could someone explain why, exactly, elisp code cannot be run inside
>> the event loop?
>
> Because it's a different thread from the main one, where we run Lisp?
> (I know nothing about macOS, so apologies if this makes no sense.)
I thought so at first, but some printf debugging indicated that the main thread
runs both lisp and the event loop. Perhaps there are circumstances where this
isn't true.
Most likely the fake-menu-click system was inherited from the X11 back-end.
However, the win32 back-end seems to use distinct threads for lisp and event
handling, perhaps out of necessity.