Tk Source Code

View Ticket
Login
Ticket UUID: 42ac1fa6fce4e08a4c2f6c5314e00f6a044ce74
Title: Wayland branch: a resize can be undone by a late configure event from the compositor
Type: Bug Version: wayland
Submitter: serhiy.storchaka Created on: 2026-10-15 07:20:17
Subsystem: (unused) Assigned To: kevin_walzer
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2026-10-16 01:18:42
Resolution: Fixed Closed By: kevin_walzer
    Closed on: 2026-10-16 01:18:42
Description:

On the wayland branch a resize can be undone by a late configure event. The compositor (sway) answers a commit of a new window size with a configure event carrying that size, and GLFW resizes the window to the size of each configure event. If the client resizes the window again before the answer arrives, the answer restores the previous size.

With the window .pack and its contents created as in pack.test (before pack-8.1):

wm geometry .pack 270x250; update
after 300; update
wm geometry .pack 240x220; update
wm geometry .pack              ;# 270x250+0+0

Which tests fail depends on the preceding tests: pack-8.6, pack-8.7, canvas-6.5, panedwindow-11.4 (each passes when run alone).

User Comments: kevin_walzer added on 2026-10-16 01:18:42:
Confirmed that referenced pack tests now pass. Merging.

serhiy.storchaka added on 2026-10-15 07:21:22:

Proposed fix in branch wayland-stale-configure: make a roundtrip to the compositor before each resize, so that such configure events arrive before it. The example gives 240x220, and pack-8.6, pack-8.7, canvas-6.5 and panedwindow-11.4 pass.