MFH: r542356
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 Approved by: ports-secteam (joneuom)
This commit is contained in:
parent
99aa5d71c1
commit
dd66b10d57
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=542487
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= xfce4-taskmanager
|
||||
PORTVERSION= 1.2.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11 xfce
|
||||
MASTER_SITES= XFCE/apps
|
||||
DIST_SUBDIR= xfce4
|
||||
|
18
x11/xfce4-taskmanager/files/patch-src_task-manager.c
Normal file
18
x11/xfce4-taskmanager/files/patch-src_task-manager.c
Normal file
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user