diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-24 12:23:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-24 12:32:57 -0300 |
| commit | 4ce902f94800a00b2b39de91ed61d0c5b32db271 (patch) | |
| tree | 864996aafc6b24c7e1f588d8c0298a2571c55c8e /core/root.zig | |
| parent | 3b3264d4236ae5624a46e0119c77d9ff2148a6d1 (diff) | |
| download | pardes-4ce902f94800a00b2b39de91ed61d0c5b32db271.tar.gz pardes-4ce902f94800a00b2b39de91ed61d0c5b32db271.zip | |
gui: a window's size is its own view's: the session's window posts it to its own view, compared with that view, and a client window posts it when its own size changes, compared with what it posted last, never with a frame: the user's "resizing feels very slow" and "contents cut" with several clients (2026-11-24); RUN FIRST (an instrumented client in --client-resize-real, a stack at each frame of another size): the client drew its own view (views.drawOne, its view live) at the SESSION WINDOW's size, 70x21 in a 56x17 window: the session's pollFrame made its own view live only when that view's size differed from the window's (`due`), then resized the LIVE view by the window (updateCoreResize compares core.view()): after a client's input its view is live, so the session window sized the client's view to its own; the client, comparing its window with that frame (Client.own, g.facts), posted its own size again, the session sized it back, a unit and a rollback each way, on and on after the drag ended (the hunt: 246 to 1308 inputs, 228 rollbacks for 30 sizes, the frames cut, pictures placed past the target: the scissor assertion); a detached session has no window to do it (25 inputs); now the window's size (windowSize: its cells, their pixels, its rows' metrics, as Event.resize carries them) goes to the session's own view through Input.post (which makes that view live), when that view is not that size (sizedTo); updateCoreResize is gone, and the font's two refits post nothing (the pump's pollFrame posts the new cells the same pump); a client posts its size when the window's own size differs from what it posted last (`posted`, reset at a join), never by a frame (a frame is its view as the session had it then: a rollback's drew an older size); a terminal client posts its size on SIGWINCH against its last (winched), the same rule already; --client-resize-real asserts a size a configure at most and as many rollbacks at most: 20 inputs besides 11 pointer motions, 15 rollbacks, 0 assertions (main 425 to 1308 inputs, 228 rollbacks; with the motions merged alone 90 and 106 inputs); real windows on the user's display, moved away at once, closed after; load 3.3
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/root.zig')
0 files changed, 0 insertions, 0 deletions
