Commit d1c7b3e
fix: use wl-copy for clipboard writes on native Wayland sessions
On Wayland the ownCloud daemon has no compositor surface and never
receives keyboard focus, so QClipboard::setText() is silently dropped
by the compositor when COPY_PRIVATE_LINK is handled.
Detect a native Wayland session via WAYLAND_DISPLAY and delegate the
clipboard write to wl-copy(1), which does not require a compositor
surface.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent dfc4d5d commit d1c7b3e
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
672 | 673 | | |
673 | 674 | | |
674 | 675 | | |
675 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
676 | 681 | | |
677 | 682 | | |
678 | 683 | | |
| |||
0 commit comments