[PR #23] [CLOSED] feat: Simple clipboard #26

Closed
opened 2026-10-15 12:47:39 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/gst-wayland-display/pull/23
Author: @DatCaptainHorse
Created: 11/14/2025
Status: ❌ Closed

Base: stable ← Head: feat/simple-clipboard


📝 Commits (1)

  • c086d4e feat: Simple clipboard set by command

📊 Changes

4 files changed (+34 additions, -4 deletions)

View changed files

📝 gst-plugin-wayland-display/src/waylandsrc/imp.rs (+6 -0)
📝 wayland-display-core/src/comp/mod.rs (+9 -0)
📝 wayland-display-core/src/lib.rs (+1 -0)
📝 wayland-display-core/src/wayland/handlers/data_device.rs (+18 -4)

📄 Description

Draft as unsure if can be done "safely" and if set_data_device_selection is even needed, should State keep track of the clipboard by itself?

I spent hours just looking for any kind of Smithay example code or documentation, it's so lacking, even in Cosmic DE's code I couldn't find anything useful.. So I just write to the FD; what could go wrong? :)

Image below shows clipboard text copied from host to container running gst-wayland-display. Currently limited to text-only, so no images etc.
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/gst-wayland-display/pull/23 **Author:** [@DatCaptainHorse](https://github.com/DatCaptainHorse) **Created:** 11/14/2025 **Status:** ❌ Closed **Base:** `stable` ← **Head:** `feat/simple-clipboard` --- ### 📝 Commits (1) - [`c086d4e`](https://github.com/games-on-whales/gst-wayland-display/commit/c086d4e187dd2897ed472ef5481d1ad2b7cb6f16) feat: Simple clipboard set by command ### 📊 Changes **4 files changed** (+34 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `gst-plugin-wayland-display/src/waylandsrc/imp.rs` (+6 -0) 📝 `wayland-display-core/src/comp/mod.rs` (+9 -0) 📝 `wayland-display-core/src/lib.rs` (+1 -0) 📝 `wayland-display-core/src/wayland/handlers/data_device.rs` (+18 -4) </details> ### 📄 Description Draft as unsure if can be done "safely" and if `set_data_device_selection` is even needed, should State keep track of the clipboard by itself? I spent hours just looking for any kind of Smithay example code or documentation, it's **so** lacking, even in Cosmic DE's code I couldn't find anything useful.. So I just write to the FD; what could go wrong? :) Image below shows clipboard text copied from host to container running gst-wayland-display. Currently limited to text-only, so no images etc. <img width="1131" height="409" alt="image" src="https://github.com/user-attachments/assets/172787dd-47eb-42a0-9047-fffdfaf5a9ea" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
games-on-whales/gst-wayland-display#26
No description provided.