mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 07:15:19 +01:00
[GH-ISSUE #86] Clipboard does not correctly paste large images into xwayland apps #2864
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#2864
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JakeStanger on GitHub (Mar 19, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/86
Describe the bug
When you copy an image that is large enough to buffer from the clipboard, and attempt to paste it into an xwayland app, it will either fail to paste or only paste partial content.
Pasting the same image into a native Wayland app works fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The full image should be correctly pasted.
System information:
d4dd8c4)Additional context
Have not tested on stable wlroots/compositor, nor on other compositors. Positive this is an xwayland problem, but not sure where in the pipeline the problem lies - presumably there's a workaround for this Ironbar can integrate since the clipboard can normally paste into xwayland apps.
Screenshots

Image dimensions are preserved, but last section is pasted as transparent due to missing data:
@JakeStanger commented on GitHub (May 5, 2023):
#130 partially resolves this:
@JakeStanger commented on GitHub (Jul 14, 2023):
Came back to this once again, and I'm still stumped by this. I've had enough of reading kernel man pages and C.
As a temporary workaround, it's possible to just up the kernel max pipe size:
For example, for 10MB:
You can probably persist it using
sysctlalthough that seems to be displaying 16MB on my system by default for some reason, when the kernel is using 1MB. Not sure what's going on there either.