Tk Source Code

Check-in [ae3b099b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [3141377]: [winfo screenwidth/height] fail to track resolution changes on X11

Use the XRandR extension, if available, to be notified of changes of the screen size and to update the size recorded by Xlib. The size in millimeters is scaled with it, so that [tk scaling] does not change.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | x11-randr-screen-size
Files: files | file ages | folders
SHA3-256: ae3b099be2244f4dbd97be70c427f5dff9e63caa6702c1919ea5ded4ec9b8a3d
User & Date: serhiy.storchaka 2026-09-18 09:29:49.705
References
2026-09-18
09:39 • Ticket [3141377f] winfo screenwidth/height fail to track resolution changes status still Open with 3 other changes artifact: 6d9cd4e6 user: serhiy.storchaka
Context
2026-10-09
16:46
Rebase to trunk check-in: 22b1254f user: jan.nijtmans tags: x11-randr-screen-size
2026-09-18
09:29
Fix [3141377]: [winfo screenwidth/height] fail to track resolution changes on X11

Use the XRandR extension, if available, to be notified of changes of the screen size and to update the size recorded by Xlib. The size in millimeters is scaled with it, so that [tk scaling] does not change. check-in: ae3b099b user: serhiy.storchaka tags: x11-randr-screen-size

2026-09-17
14:49
Follow-up to [3cb7c4ac72]: don't clamp the result of Tk_GetUserInactiveTime() on Windows check-in: d2b7156d user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to unix/configure.
Changes to unix/configure.ac.
Changes to unix/tkUnixEvent.c.