Skip to content

wayland: Consolidate data manager handling - #16589

Merged
Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:wl_clipboard_refactor
Oct 25, 2026
Merged

Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:wl_clipboard_refactor

Conversation

@Kontrabant

Copy link
Copy Markdown
Contributor

The data management devices that handle clipboard, drag & drop, and primary selection had functionality split across several source files. Consolidate all handling into the data manager source file, and expose only what is necessary.

Data device handling is untangled from multiple source files, duplicate functionality has been removed, trivial setters/getters have been removed, the internal API has shrunk and been simplified, and many functions have become static.

This is a bit of churn, but it makes dealing with the data manager code much easier in the end.

  • I confirm that I am the author of this code and release it to the SDL project under the zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

@Kontrabant Kontrabant added this to the 3.6.0 milestone Oct 25, 2026
@Kontrabant
Kontrabant force-pushed the wl_clipboard_refactor branch from c161c89 to 9d635d1 Compare October 25, 2026 17:11
The data management devices that handle clipboard, drag & drop, and primary selection had functionality split across several source files. Consolidate all handling into the data manager source file, and expose only what is necessary.

Data device handling is untangled from multiple source files, duplicate functionality has been removed, trivial setters/getters have been removed, the internal API has shrunk and been simplified, and many functions have become static.
@Kontrabant
Kontrabant force-pushed the wl_clipboard_refactor branch from 9d635d1 to 437ce35 Compare October 25, 2026 17:22

@slouken slouken left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Huzzah!

@Kontrabant
Kontrabant merged commit c2560b2 into libsdl-org:main Oct 25, 2026
10 checks passed
@Kontrabant
Kontrabant deleted the wl_clipboard_refactor branch October 25, 2026 20:00
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