Tk Source Code

View Ticket
Login
Ticket UUID: 4ce1817e331f7e8795aecd905b9a2d9808f7d20c
Title: Wayland branch: after another toplevel was destroyed, a resize does not generate ConfigureNotify
Type: Bug Version: wayland
Submitter: serhiy.storchaka Created on: 2026-10-15 12:49:19
Subsystem: (unused) Assigned To: kevin_walzer
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-10-17 22:36:12
Resolution: Accepted Closed By: kevin_walzer
    Closed on: 2026-10-17 22:36:12
Description:

After another toplevel was destroyed, a resize of a toplevel does not reach Tk: its children keep the old layout. E.g. after textDisp-13.11 creates and destroys .top2, wm geometry . {} shrinks . from 248 to 246 pixels, but the text widget stays 148 pixels wide while the frame next to it is 100 pixels wide. The 14 textDisp-14.*, 15.* and 16.* scrolling tests fail because of this.

TkWaylandFramebufferSizeCallback() creates the new FBO without making the window's GL context current. When another context (or none) is current, nvgluCreateFramebuffer() fails, and the callback returns before GenerateConfigureNotify(), so no ConfigureNotify is generated.

Proposed fix in branch wayland-configure-after-fbo-failure: make the window's context current, and generate the ConfigureNotify even if the FBO cannot be created.

User Comments: kevin_walzer added on 2026-10-17 22:36:12:
Accepting patch.