Skip to content

x11: Use only a single atom manager#1865

Merged
maan2003 merged 3 commits intolinebender:masterfrom
psychon:atom_manager
Jul 10, 2021
Merged

x11: Use only a single atom manager#1865
maan2003 merged 3 commits intolinebender:masterfrom
psychon:atom_manager

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 <psychon@znc.in>
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 <psychon@znc.in>
Signed-off-by: Uli Schlachter <psychon@znc.in>
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!

@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