Tk Source Code

View Ticket
Login
2019-09-03
17:08 Ticket [bf93d098d7] Aqua: menu bar not responsive when Tk started on 10.15 beta status still Open with 4 other changes artifact: 3834e78a62 user: marc_culler
2019-08-26
03:24 Ticket [bf93d098d7]: 4 changes artifact: 74ff566515 user: chrstphrchvz
2019-08-12
08:10 New ticket [bf93d098d7]. artifact: 18f1907c42 user: chrstphrchvz
2017-11-25
12:44 Closed ticket [88f02fa81a]: On macOS the menu bar can be initially unresponsive for command line apps plus 5 other changes artifact: ec5ebcb66b user: marc_culler
2017-11-24
16:49 New ticket [88f02fa81a]. artifact: 89b46e41c9 user: marc_culler

Ticket UUID: 88f02fa81a093f451a057156c5dcfb7f93443922
Title: On macOS the menu bar can be initially unresponsive for command line apps
Type: Bug Version: 8.6
Submitter: marc_culler Created on: 2017-11-24 16:49:05
Subsystem: 11. Aqua Menus Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2017-11-25 12:44:09
Resolution: None Closed By: marc_culler
    Closed on: 2017-11-25 12:44:09
Description:
With some command line apps the menubar will be unresponsive when the app is
first launched.  If the app is deactivated, say by clicking on the desktop, and
then reactivated the menu bar works correctly.  Some command line apps exhibit
this behavior while others do not.  There are cases where an app does this when
run on some machines but does not do it when run on other machines.

Amazingly enough, one way to demonstrate this behavior consistently is to run:
$ fossil diff -tk

This may be related to the use of TransformProcessType, which has been linked
to strange, and OS version-dependent behaviors of the menu bar.  See
http://www.sheepsystems.com/developers_blog/transformprocesstype--bette.html

It is inappropriate to be using TransormProcessType here since the purpose
of that function is to convert between background and foreground processes.
Tk is not launched as a background process.  It appears that Tk is relying
on some undocumented side effect of TransformProcessType instead of simply
setting the NSApplicationActivationPolicy.
User Comments: marc_culler added on 2017-11-25 12:44:09:
Fixed by check-in [fc16f8a9] and merged into core-8-6-branch and trunk.