[kde-workspace] window keeps status 'asking for attention' after gaining focus (kde#303208)
Rex Dieter
rdieter at fedoraproject.org
Tue Aug 7 18:40:27 UTC 2012
commit 495f8ca9013a42e277b78320a69da6598aeb3b34
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Tue Aug 7 13:44:13 2012 -0500
window keeps status 'asking for attention' after gaining focus (kde#303208)
kde-workspace-4.9-taskmanager_attention.patch | 32 +++++++++++++++++++++++++
kde-workspace-4.9-tasks_attention.patch | 23 ++++++++++++++++++
kde-workspace.spec | 9 ++++++-
3 files changed, 63 insertions(+), 1 deletions(-)
---
diff --git a/kde-workspace-4.9-taskmanager_attention.patch b/kde-workspace-4.9-taskmanager_attention.patch
new file mode 100644
index 0000000..44b345b
--- /dev/null
+++ b/kde-workspace-4.9-taskmanager_attention.patch
@@ -0,0 +1,32 @@
+From: Martin T. H. Sandsmark <martin.sandsmark at kde.org>
+Date: Tue, 07 Aug 2012 11:23:28 +0000
+Subject: Check if attention demanding status has changed when we activate a window.
+X-Git-Url: http://quickgit.kde.org/?p=kde-workspace.git&a=commitdiff&h=d3b3cd48f7b32ef891a85e5321b3c61469ae1df3
+---
+Check if attention demanding status has changed when we activate a window.
+
+BUG: 303208
+---
+
+
+--- a/libs/taskmanager/task.cpp
++++ b/libs/taskmanager/task.cpp
+@@ -168,7 +168,16 @@
+ void Task::setActive(bool a)
+ {
+ d->active = a;
+- emit changed(StateChanged);
++
++ TaskChanges changes = StateChanged;
++
++ if (demandsAttention() != d->demandedAttention) {
++ d->demandedAttention = !d->demandedAttention;
++ changes |= AttentionChanged;
++ }
++
++ emit changed(changes);
++
+ if (a) {
+ emit activated();
+ } else {
+
diff --git a/kde-workspace-4.9-tasks_attention.patch b/kde-workspace-4.9-tasks_attention.patch
new file mode 100644
index 0000000..ec52ae7
--- /dev/null
+++ b/kde-workspace-4.9-tasks_attention.patch
@@ -0,0 +1,23 @@
+From: Martin T. H. Sandsmark <martin.sandsmark at kde.org>
+Date: Tue, 07 Aug 2012 03:35:54 +0000
+Subject: We need to consider the possibility of an Attention wanted flag.
+X-Git-Url: http://quickgit.kde.org/?p=kde-workspace.git&a=commitdiff&h=c4e93e26e400ff84a9f0a6cd3fd353dbd382c3db
+---
+We need to consider the possibility of an Attention wanted flag.
+---
+
+
+--- a/plasma/desktop/applets/tasks/abstracttaskitem.cpp
++++ b/plasma/desktop/applets/tasks/abstracttaskitem.cpp
+@@ -231,7 +231,9 @@
+ m_flags = flags;
+
+ QString newBackground;
+- if (m_flags & TaskIsMinimized) {
++ if (m_flags & TaskWantsAttention) {
++ newBackground = "attention";
++ } else if (m_flags & TaskIsMinimized) {
+ newBackground = "minimized";
+ } else if (m_flags & TaskHasFocus) {
+ newBackground = "focus";
+
diff --git a/kde-workspace.spec b/kde-workspace.spec
index 0a95de0..3ee96f0 100644
--- a/kde-workspace.spec
+++ b/kde-workspace.spec
@@ -12,7 +12,7 @@
Summary: KDE Workspace
Name: kde-workspace
Version: 4.9.0
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2
URL: https://projects.kde.org/projects/kde/kde-workspace
@@ -110,6 +110,8 @@ Patch58: kde-workspace-4.8.0-systemd-shutdown.patch
Patch59: kde-workspace-4.9.0-fontconfigdir.patch
## upstream patches
+Patch100: kde-workspace-4.9-tasks_attention.patch
+Patch101: kde-workspace-4.9-taskmanager_attention.patch
## plasma active patches
# adapted version of wac-html-widgets.patch
@@ -444,6 +446,8 @@ Requires: akonadi
%patch59 -p1 -b fontconfigdir
# upstream patches
+%patch100 -p1 -b .tasks_attention
+%patch101 -p1 -b .taskmanager_attention
# plasma-active
%patch153 -p1 -b .wac-html-widgets
@@ -994,6 +998,9 @@ fi
%changelog
+* Tue Aug 07 2012 Rex Dieter <rdieter at fedoraproject.org> 4.9.0-3
+- window keeps status 'asking for attention' after gaining focus (kde#303208)
+
* Fri Aug 03 2012 Rex Dieter <rdieter at fedoraproject.org> 4.9.0-2
- kcm_fonts should use $XDG_CONFIG_HOME/fontconfig/fonts.conf for storage settings for fontconfig > 2.10.0 (kde#304317)
More information about the scm-commits
mailing list