Tk Source Code

View Ticket
Login
2026-10-07
22:20 • New ticket [40dc19ee] Regression: Canvas does not immediately display in Tk 9.1 on macOS. artifact: b2afc4a9 user: tberg
2025-12-17
20:59
Backport fix for [b713c15714]. check-in: 031bdfea user: culler tags: core-9-0-branch
20:53
Fix [b713c15714]: process idle tasks before displaying a TKContentView for the first time. check-in: 63230229 user: culler tags: trunk, main
20:48 • Ticket [b713c157] macOS : more/less in updateLayer status still Closed with 5 other changes artifact: 3a748502 user: marc_culler
20:48 • Closed ticket [b713c157]. artifact: d026c773 user: marc_culler
20:39 • New ticket [b713c157]. artifact: 59a69eea user: nab

Ticket UUID: b713c157148f8f297c6024b7ef7dd288f7e852d4
Title: macOS : more/less in updateLayer
Type: Bug Version: trunk
Submitter: nab Created on: 2025-12-17 20:39:49
Subsystem: 66. Aqua Window Operations Assigned To: marc_culler
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2025-12-17 20:48:31
Resolution: Fixed Closed By: marc_culler
    Closed on: 2025-12-17 20:48:31
Description:
if I do not say mistakes.... in trunk updateLayer() seems to be only called once and for all. This leads to toplevels being drawn empty.

in my app where scenario is :
-open the app in 'empty' state
-load a file
-witdraw GUI and display a splash screen.
-fill GUI with widgets
-deiconify

topelevels can appear empty then filled with widgets

++
Nicolas
User Comments: marc_culler (claiming to be Marc Culler) added on 2025-12-17 20:48:03:
Thanks, Nicolas.

This was due to an implementation mistake on my part. I was using a static
variable in the updateLayer method to indicate whethera TKContentView was
being displayed for the first time.  This was an error because static
variables are shared by all instances of a class.  So the idle tasks
intended to make sure that the toplevel window was updated before
it is displayed the first time was only being run for the root window,
and not for any other windows.

This has now been corrected in the updataLayer_loop branch and has been
tested by Nicolas.  So I will close this ticket and merge that branch.