Skip to content

added image clipboard support#264

Open
FelipeFMA wants to merge 1 commit into
cdown:developfrom
FelipeFMA:develop
Open

added image clipboard support#264
FelipeFMA wants to merge 1 commit into
cdown:developfrom
FelipeFMA:develop

Conversation

@FelipeFMA

Copy link
Copy Markdown

No description provided.

Capture and serve binary image targets (image/png, image/bmp, image/jpeg, image/tiff, image/gif, image/webp) alongside standard text selections.

- Store binary image data with content type metadata and human-readable size labels (e.g., "[JPEG image] 1.5K") in menu launchers.
- Position content_type at the end of struct cs_snip to preserve on-disk binary layout compatibility with legacy snip files.
- Track selection target requests with a per-selection FIFO queue (pending_type_queue) to prevent content-type mislabeling when TARGETS responses arrive out of order.
- Inspect offered targets in selection owner priority order and detect image types from buffer magic bytes.
- Clear pending target queues on selection change and pop unowned selection requests to prevent queue desynchronization.
- Bypass text-only operations (first_line, is_salient_text, partial merges) on non-TEXT binary payloads.
- Include TARGETS atom in clipserve TARGETS response for ICCCM §2.6.2 compliance.
- Add unit test coverage for image clip storage, image detection, size formatting, and content type labels.
@FelipeFMA

Copy link
Copy Markdown
Author

would close #196

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.

1 participant