Commit 0ef12b69 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

plugins/screencast: Avoid damaging full screen on rotated outputs

Not sure what that check is for, but things should work as expected even
without it.
parent 53685379
Pipeline #167090 passed with stage
in 16 minutes and 57 seconds
......@@ -130,14 +130,10 @@ void ScreencastManager::streamOutput(KWaylandServer::ScreencastStreamV1Interface
auto stream = new ScreenCastStream(new OutputScreenCastSource(streamOutput), this);
stream->setCursorMode(mode, streamOutput->scale(), streamOutput->geometry());
auto bufferToStream = [streamOutput, stream](const QRegion &damagedRegion) {
if (damagedRegion.isEmpty()) {
auto bufferToStream = [stream](const QRegion &damagedRegion) {
if (!damagedRegion.isEmpty()) {
const QRect frame({}, streamOutput->modeSize());
const QRegion region = streamOutput->pixelSize() != streamOutput->modeSize() ? frame : damagedRegion;
connect(stream, &ScreenCastStream::startStreaming, waylandStream, [streamOutput, stream, bufferToStream] {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment