Which display manager do you use? Please run "qdbus-qt5", "qdbus-qt5 org.kde.KWin" and "qdbus-qt5 org.kde.KWin /Screenshot", "env" and upload the output.