Tk Source Code

View Ticket
Login
Ticket UUID: eb80f601ac0b72c2f062ccbd5a6dd747cb0fef25
Title: Aqua: Handle file events in _runBackgroundLoop
Type: RFE Version: core-8-6-branch
Submitter: chrstphrchvz Created on: 2022-10-06 20:30:08
Subsystem: 70. Event Loop Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2022-10-07 22:41:58
Resolution: None Closed By: nobody
    Closed on:
Description:

_runBackgroundLoop already handles TCL_TIMER_EVENTS so that programs which update their appearance in response to timer events (e.g. the pendulum widget demo) continue to work while a menu is posted.

As mentioned in my comment dated 2022-09-09 03:00:55 on [3e9e82bcfe4b], some programs similarly update their appearance in response to file events, so please consider also handling TCL_FILE_EVENTS in _runBackgroundLoop.

User Comments: chrstphrchvz added on 2022-10-07 22:41:58:

I would hope it is as simple as adding the flag. The only potential issue I am aware of is memory errors if a file event callback causes a menu to destroyed while it is posted, which is already possible for timer events ([09a11fb122]).


marc_culler (claiming to be Marc Culler) added on 2022-10-07 14:52:36:
Hi Christopher, is this a simple as adding the TCL_FILE_EVENTS flag, or
are there subtleties to watch out for?