Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and optimize position and dimension setting methods for frames #71

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

sdilts
Copy link
Collaborator

@sdilts sdilts commented Oct 24, 2024

In set-position, instead of delegating to the frame-x and frame-y setters, calculate the values in the method and call set-position again. This reduces method calls overall, especially to clients.

  • Fix (setf (frame-x tree-frame)) and (setf (frame-y tree-frame)) so that they translate their children in the correct direction

In set-position, instead of delegating to the frame-x and frame-y
setters, calculate the values in the method and call set-position
again. This reduces method calls overall, especially to clients.
+ Fix (setf (frame-x tree-frame)) and (setf (frame-y tree-frame)) so
  that they translate their children in the correct direction
Compute the scale and shift of children at the same time so the we
continue to use set-dimension and reduce the amount of configure calls
to clients.

I won't be 100% confident this is correct until I see it work, but I'm
more confident than previously.
@sdilts sdilts force-pushed the fix/set-position-method branch from 4faf14f to 14ba9eb Compare October 25, 2024 04:23
@sdilts sdilts changed the title Fix and optimize position setting methods for frames Fix and optimize position and dimension setting methods for frames Oct 25, 2024
@sdilts sdilts merged commit ffa461e into master Oct 25, 2024
1 check passed
@sdilts sdilts deleted the fix/set-position-method branch October 25, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant