Tk Source Code

View Ticket
Login
Ticket UUID: a708e082c8ea2f8c8626bf0615dcf118ef6af558
Title: Wayland branch: any numeric visual ID is accepted (visual-4.3 fails)
Type: Bug Version: wayland
Submitter: serhiy.storchaka Created on: 2026-10-18 07:37:57
Subsystem: (unused) Assigned To: kevin_walzer
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-10-18 15:27:49
Resolution: Accepted Closed By: kevin_walzer
    Closed on: 2026-10-18 15:27:49
Description:

On the wayland branch any numeric visual ID is accepted: toplevel .t -visual 1291673 succeeds (visual-4.3 fails), and winfo visualid . returns 0x0.

XGetVisualInfo() copied the requested ID into its result and into the only visual of the port, which has the ID 1, and XVisualIDFromVisual() always returned 0.

Proposed fix in branch wayland-visual-id: match only the ID 1, and return the ID of the visual.

User Comments: kevin_walzer added on 2026-10-18 15:27:49:
Accepting, thank you.