Tk Source Code

Artifact [34875bfb]
Login

Artifact 34875bfb6960c31b535a1bc767f350f53890ff8e850213cd629a94200f9aa010:

Attachment "call_graphs.txt" to ticket [591829e9] added by erikleunissen 2026-05-09 16:48:38.
###############################################################################
# CURRENT TRUNK (9.1.a1 -> 9.1.a2)


* Tk_Init -> Initialize -> TkCreateFrame -> Schedule MapFrame for execution at idle time
                           |
                           -> TkpInit
                              * Updates idletasks: executes scheduled MapFrame synchronously  ----------
                              * Schedule showRootWindow for execution at idle time                      |
                                                                                                        |
* Evaluate script file, which may do [wm withdraw .], setting the root window in state withdrawn.    |
                                                                                                        |
Idle tasks:                                                                                             |
                                                                                                        |
   ------------------------------------------------------------------------------------------------------
  |
  v
* MapFrame -> Tk_MapWindow -> TkWmMapWindow
                              * Set TK_MAPPED flag in winPtr->flags, which determines result of Tk_IsMapped
                              * Calls XMapWindow
                              * Generates/services MapNotify event

* showRootWindow -> makeKeyAndOrderFront
                      (if window is in state normal. This is foregone if
                       the script file has withdrawn the root window.)



###############################################################################
# BUGFIX BRANCH A (bug-591829e948-A)


* Tk_Init -> Initialize -> TkCreateFrame -> Schedule MapFrame for execution at idle time
                           |
                           -> TkpInit

* Evaluate script file, which may do [wm withdraw .], setting the root window in state withdrawn.

Idle tasks:

* MapFrame -> Tk_MapWindow -> TkWmMapWindow
                              * Set TK_MAPPED flag in winPtr->flags, which determines result of Tk_IsMapped
                              * Calls XMapWindow -> makeKeyAndOrderFront
                                                    (if window is in state normal. This is foregone if
                                                     the script file has withdrawn the root window.)
                              * Generates/services MapNotify event