summaryrefslogtreecommitdiff
path: root/kde-frameworks/plasma/files/plasma-5.88.0-fix-misrenderings-with-transparency.patch
diff options
context:
space:
mode:
Diffstat (limited to 'kde-frameworks/plasma/files/plasma-5.88.0-fix-misrenderings-with-transparency.patch')
-rw-r--r--kde-frameworks/plasma/files/plasma-5.88.0-fix-misrenderings-with-transparency.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/kde-frameworks/plasma/files/plasma-5.88.0-fix-misrenderings-with-transparency.patch b/kde-frameworks/plasma/files/plasma-5.88.0-fix-misrenderings-with-transparency.patch
new file mode 100644
index 000000000000..d1e6f37d8a2b
--- /dev/null
+++ b/kde-frameworks/plasma/files/plasma-5.88.0-fix-misrenderings-with-transparency.patch
@@ -0,0 +1,34 @@
+From 6176d8ef8f36290075c5bd8932d623e68468a1cd Mon Sep 17 00:00:00 2001
+From: Marco Martin <notmart@gmail.com>
+Date: Tue, 16 Nov 2021 11:05:17 +0100
+Subject: [PATCH] Do updateTheme after QQuickWindow::event
+
+doing updatetheme there will ensure that the window size is correct,
+so then when the surface commit will happen, we'll have the blur
+and contrast regions wit hthe proper geometry
+
+BUG:305247
+---
+ src/plasmaquick/dialog.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp
+index eac7d432a..343bfe4c0 100644
+--- a/src/plasmaquick/dialog.cpp
++++ b/src/plasmaquick/dialog.cpp
+@@ -1243,10 +1243,12 @@ bool Dialog::event(QEvent *event)
+ // sometimes non null regions arrive even for non visible windows
+ // for which surface creation would fail
+ if (!d->shellSurface && isVisible()) {
++ const bool ret = QQuickWindow::event(event);
+ KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher);
+ d->setupWaylandIntegration();
+ d->updateVisibility(true);
+ d->updateTheme();
++ return ret;
+ }
+ #endif
+ } else if (event->type() == QEvent::PlatformSurface) {
+--
+GitLab
+