7
93
Fork
You've already forked wmenu
22

Only call render_menu once per frame #17

Merged
adnano merged 1 commit from mstoeckl/wmenu:render-once into main 2024年11月02日 00:33:53 +01:00
Contributor
Copy link

Text widths do not depend on the size of the underlying cairo_surface, so instead of rendering and submitting a buffer twice, one can just use a 1x1 dummy surface (This trick is also used by swaylock.)

Text widths do not depend on the size of the underlying cairo_surface, so instead of rendering and submitting a buffer twice, one can just use a 1x1 dummy surface (This trick is also used by swaylock.)
An actual surface is not needed to estimate font sizes; a 1x1 image
will do, as long as the cairo context has the same options.

Looks great, thanks!

Looks great, thanks!
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adnano/wmenu!17
Reference in a new issue
adnano/wmenu
No description provided.
Delete branch "mstoeckl/wmenu:render-once"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?