File Set-m_windowmode-in-screenshotWindowUnderCursor.patch of Package kwin5

From 2ea6fc2abefd810915c38daee95fe31205ca741b Mon Sep 17 00:00:00 2001
From: Kai Uwe Broulik <kde@privat.broulik.de>
Date: Tue, 5 Mar 2019 22:59:44 +0100
Subject: [effects/screenshot] Set m_windowMode in screenshotWindowUnderCursor

BUG: 374864
FIXED-IN: 5.15.3

Differential Revision: https://phabricator.kde.org/D19552
---
 effects/screenshot/screenshot.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/effects/screenshot/screenshot.cpp b/effects/screenshot/screenshot.cpp
index 3139bd8..f023779 100644
--- a/effects/screenshot/screenshot.cpp
+++ b/effects/screenshot/screenshot.cpp
@@ -316,6 +316,7 @@ void ScreenShotEffect::screenshotWindowUnderCursor(int mask)
         m_scheduledScreenshot = 0;
     }
     if (m_scheduledScreenshot) {
+        m_windowMode = WindowMode::Xpixmap;
         m_scheduledScreenshot->addRepaintFull();
     }
 }
-- 
cgit v1.1
openSUSE Build Service is sponsored by