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

x11: Use only a single atom manager #1865

Merged
merged 3 commits into from
Jul 10, 2021
Merged

Conversation

psychon
Copy link
Contributor

@psychon psychon commented Jul 9, 2021

Instead of having one atom manager instance per window and another for the clipboard, this merges everything into a single instance. The idea is that this is a tiny, tiny bit more performant (but likely unmeasurable so). Also, constructing the clipboard becomes infallible, which is always nice.

psychon added 3 commits July 9, 2021 12:36
Atoms are a global resource in X11, so it is unnecessary for every
window to query them again. This commit moves the atom manager from
Window to Application.

Signed-off-by: Uli Schlachter <[email protected]>
There is no point in keeping two separate atom managers around. This
commit just merges everything into one and thus avoids one round-trip to
the X11 server during startup.

Signed-off-by: Uli Schlachter <[email protected]>
Signed-off-by: Uli Schlachter <[email protected]>
Copy link
Collaborator

@maan2003 maan2003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

CHANGELOG.md Show resolved Hide resolved
@maan2003 maan2003 merged commit 2b20c8c into linebender:master Jul 10, 2021
@psychon psychon deleted the atom_manager branch July 10, 2021 05:31
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.

2 participants