summaryrefslogtreecommitdiff
path: root/x11/xfce4-taskmanager/files/patch-src_task-manager.c
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2020-07-16 13:24:01 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2020-07-16 13:24:01 +0000
commit446bef763b1a025b3a4fe1a9502790b975f6917c (patch)
tree44ee48d5e872a45a941f94768aef287ff78fd932 /x11/xfce4-taskmanager/files/patch-src_task-manager.c
parentmultimedia/kodi: update to 18.7.1 (diff)
Import patch merged upstream. Fixes an issue which causes processes
to not being removed from list sometimes. PR: 247960 Submitted by: rozhuk.im@gmail.com MFH: 2020Q3
Notes
Notes: svn path=/head/; revision=542356
Diffstat (limited to '')
-rw-r--r--x11/xfce4-taskmanager/files/patch-src_task-manager.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11/xfce4-taskmanager/files/patch-src_task-manager.c b/x11/xfce4-taskmanager/files/patch-src_task-manager.c
new file mode 100644
index 000000000000..59140837bb9c
--- /dev/null
+++ b/x11/xfce4-taskmanager/files/patch-src_task-manager.c
@@ -0,0 +1,18 @@
+--- src/task-manager.c.orig 2019-12-09 09:12:44 UTC
++++ src/task-manager.c
+@@ -432,10 +432,12 @@ xtm_task_manager_update_model (XtmTaskManager *manager
+ gtk_tree_model_get (manager->model, &cur_iter, XTM_PTV_COLUMN_CPU_STR, &cpu_str, XTM_PTV_COLUMN_TIMESTAMP, &old_timestamp, XTM_PTV_COLUMN_PID, &pid, -1);
+ found = (g_strcmp0 (cpu_str, "-") == 0);
+ g_free (cpu_str);
+- if (found && (timestamp - old_timestamp) > TIMESTAMP_DELTA)
++ if (found)
+ {
+- G_DEBUG_FMT ("Remove old task %d", pid);
+- model_remove_tree_iter (manager->model, &cur_iter);
++ if ((timestamp - old_timestamp) > TIMESTAMP_DELTA) {
++ G_DEBUG_FMT ("Remove old task %d", pid);
++ model_remove_tree_iter (manager->model, &cur_iter);
++ }
+ continue;
+ }
+