Hi.
The solution is impement that descibed in this post:
https://github.com/flameshot-org/flameshot/issues/2848
The user pintassilgo found the issue and fixed it.
The user zorn-v made this script that work fine:
============
#!/bin/bash
set -e
rm -rf build
mkdir -p build
cd build
sudo apt install devscripts equivs libkf5guiaddons-dev -y
sudo mk-build-deps -t'apt-get -y' -ir flameshot
aptsource flameshot
SRC_DIR=`ls | cut -f1 | head -n1`
pushd ${SRC_DIR}
sed -i's/-DFLAMESHOT_ABOUT_DEB_VERSION/-DUSE_WAYLAND_CLIPBOARD=1
-DFLAMESHOT_ABOUT_DEB_VERSION/' debian/rules
EMAIL=nob...@email.com dch -n''
debuild -i -j -us -uc
popd
sudo apt purge flameshot-build-deps devscripts equivs libkf5guiaddons-dev
--auto-remove -y
sudo dpkg -i flameshot_*.deb
rm -rf ../build
==============
SUGGEST: Make the binary with the-DUSE_WAYLAND_CLIPBOARD=1 option set,
because it works fine in X11 and Wayland.
Regards.