Tk Source Code

View Ticket
Login
Ticket UUID: 7ee755115acc59dfdde4f3d40c54fc8a17fa3930
Title: Wayland branch: toplevel -colormap new fails with an empty error message
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: Minor
Status: Closed Last Modified: 2026-10-16 01:30:35
Resolution: Fixed Closed By: kevin_walzer
    Closed on: 2026-10-16 01:30:35
Description:

On the wayland branch XCreateColormap() returns 0 (None), which Tk_GetColormap()'s callers take as failure, so toplevel .t -colormap new fails with an empty error message. visual-8.1 fails.

User Comments: kevin_walzer added on 2026-10-16 01:30:35:
Verified fix, merging.

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

Proposed fix in branch wayland-new-colormap: return a new nonzero value each time, as on macOS. visual-8.1 passes.