Tk Source Code

View Ticket
Login
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.