diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
commit | abaa75b10f899ada8dd05b23cc03205064394bc6 (patch) | |
tree | eca3dd248b73b92013cba00a0fcc1edf2696e19a /kde-plasma/plasma-workspace/files | |
parent | 24fd814c326e282c4321965c31f341dad77e270d (diff) |
gentoo resync : 22.01.2021
Diffstat (limited to 'kde-plasma/plasma-workspace/files')
2 files changed, 101 insertions, 0 deletions
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-avoid-render-invisible-contents.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-avoid-render-invisible-contents.patch new file mode 100644 index 000000000000..effea7fdc8e1 --- /dev/null +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-avoid-render-invisible-contents.patch @@ -0,0 +1,38 @@ +From 45e0a722fb85bb5d1ab8bef92080e934254b13aa Mon Sep 17 00:00:00 2001 +From: David Edmundson <kde@davidedmundson.co.uk> +Date: Thu, 7 Jan 2021 13:36:29 +0000 +Subject: [PATCH] [lookandfeel] Avoid rendering invisible contents + +An opacity of 0 but still visible still results in nodes in the +scenegraph, which is wasteful. This is shown in gammaray with some +warnings. + +Enabled is also bound to visible as if a text field has focus it still +animates the cursor icon even if inivisble, producing wakeups. + +BUG: 347772 +FIXED-IN: 5.21 +--- + lookandfeel/contents/lockscreen/LockScreenUi.qml | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/lookandfeel/contents/lockscreen/LockScreenUi.qml b/lookandfeel/contents/lockscreen/LockScreenUi.qml +index a2eba8e6d..83564fc0a 100644 +--- a/lookandfeel/contents/lockscreen/LockScreenUi.qml ++++ b/lookandfeel/contents/lockscreen/LockScreenUi.qml +@@ -228,6 +228,12 @@ PlasmaCore.ColorScope { + height: lockScreenRoot.height + units.gridUnit * 3 + focus: true //StackView is an implicit focus scope, so we need to give this focus so the item inside will have it + ++ // this isn't implicit, otherwise items still get processed for the scenegraph ++ visible: opacity > 0 ++ // changing enabled will toggle if an item can have activeFocus, which otherwise ++ //keeps the text cursor blinking even when invisble ++ enabled: visible ++ + initialItem: MainBlock { + id: mainBlock + lockScreenUiVisible: lockScreenRoot.uiVisible +-- +GitLab + diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-crash-on-screen-changes.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-crash-on-screen-changes.patch new file mode 100644 index 000000000000..58f3a50c4911 --- /dev/null +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.20.5-fix-crash-on-screen-changes.patch @@ -0,0 +1,63 @@ +From fa2bafea8f0cd9fac0864ac23f23c955d5f15b73 Mon Sep 17 00:00:00 2001 +From: David Edmundson <kde@davidedmundson.co.uk> +Date: Tue, 5 Jan 2021 23:57:19 +0000 +Subject: [PATCH] [panel] Fix crash on screen changes + +There is an error handling path when we fetch the relevant config() + +``` +KConfigGroup PanelView::panelConfig(... +{ + if (!containment || !screen) { + return KConfigGroup(); + } +``` + +which we indiscrimiately call parent() on. + +This patch guards that case, which is presumably screen being +temporarily null. + +This code is also Plasma 5.8 compatibility fallback, so arguably we +could get rid of it. + +BUG: 425711 +--- + shell/panelview.cpp | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/shell/panelview.cpp b/shell/panelview.cpp +index 28e86d2d3..991364e97 100644 +--- a/shell/panelview.cpp ++++ b/shell/panelview.cpp +@@ -561,7 +561,8 @@ void PanelView::resizePanel() + + void PanelView::restore() + { +- if (!containment()) { ++ KConfigGroup panelConfig = config(); ++ if (!panelConfig.isValid()) { + return; + } + +@@ -572,7 +573,7 @@ void PanelView::restore() + //but if fails read it from the resolution dependent one as + //the place for this config key is changed in Plasma 5.9 + //Do NOT use readConfigValueWithFallBack +- setAlignment((Qt::Alignment)config().parent().readEntry<int>("alignment", config().readEntry<int>("alignment", m_alignment))); ++ setAlignment((Qt::Alignment)panelConfig.parent().readEntry<int>("alignment", panelConfig.readEntry<int>("alignment", m_alignment))); + + // All the other values are read from screen independent values, + // but fallback on the screen independent section, as is the only place +@@ -599,7 +600,7 @@ void PanelView::restore() + //but if fails read it from the resolution dependent one as + //the place for this config key is changed in Plasma 5.9 + //Do NOT use readConfigValueWithFallBack +- setVisibilityMode((VisibilityMode)config().parent().readEntry<int>("panelVisibility", config().readEntry<int>("panelVisibility", (int)NormalPanel))); ++ setVisibilityMode((VisibilityMode)panelConfig.parent().readEntry<int>("panelVisibility", panelConfig.readEntry<int>("panelVisibility", (int)NormalPanel))); + m_initCompleted = true; + resizePanel(); + positionPanel(); +-- +GitLab + |