Bug 397444 - Image Copy to Clipboard does not work on Wayland
Summary: Image Copy to Clipboard does not work on Wayland
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.4.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-14 12:20 UTC by avin3sh
Modified: 2021-08-17 02:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avin3sh 2018-08-14 12:20:52 UTC
In context menu, Okular provides two "Copy to Clipboard" option, one preceded with "file" icon and one with "picture" icon.

Copy to Clipboard for text works but Copy to Clipboard for image does not work. This happens only when using Wayland.
Comment 1 Albert Astals Cid 2018-08-14 12:51:43 UTC
I don't see how this can be an Okular problem.

The only thing we do is

                    QClipboard *cb = QApplication::clipboard();
                    cb->setPixmap( pixmap, QClipboard::Clipboard );

So if it does not work in Wayland that's either a problem in Qt or in whicever wayland server/platform/something that you are using.

Are you using KWin? Which version? And which version of Qt?
Comment 2 avin3sh 2018-08-14 13:02:45 UTC
(In reply to Albert Astals Cid from comment #1)
> I don't see how this can be an Okular problem.
> 
> The only thing we do is
> 
>                     QClipboard *cb = QApplication::clipboard();
>                     cb->setPixmap( pixmap, QClipboard::Clipboard );
> 
> So if it does not work in Wayland that's either a problem in Qt or in
> whicever wayland server/platform/something that you are using.
> 
> Are you using KWin? Which version? And which version of Qt?

I apologize if its upstream issue. I did not know the right place to submit it.

I am using KDE Neon and have made no changes in source. The kwin version is 5.13.4 and Qt 5.11.1
Comment 3 Albert Astals Cid 2018-08-14 13:24:37 UTC
ok, tx, i'll try to figure out who's at fault.