procstats: show above window.

devs/bu5hm4n/pointer-fix
Alastair Poole 2 years ago
parent 5d08df0746
commit 52d7ca6486
  1. 8
      src/modules/procstats/e_mod_main.c
  2. 3
      src/modules/procstats/process.c

@ -105,7 +105,7 @@ _proc_stats_client_move_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
evas_object_geometry_get(item->obj_swallow, &ox, &oy, &ow, &oh);
if (item->popup)
evas_object_move(item->popup, ox + (ow / 2), oy + oh);
evas_object_move(item->popup, ox + (ow / 2), oy);
}
static void
@ -159,11 +159,11 @@ _proc_stats_icon_clicked_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
_proc_stats_item_display(item);
elm_ctxpopup_direction_priority_set(o, ELM_CTXPOPUP_DIRECTION_DOWN,
ELM_CTXPOPUP_DIRECTION_UP,
elm_ctxpopup_direction_priority_set(o, ELM_CTXPOPUP_DIRECTION_UP,
ELM_CTXPOPUP_DIRECTION_DOWN,
ELM_CTXPOPUP_DIRECTION_LEFT,
ELM_CTXPOPUP_DIRECTION_RIGHT);
evas_object_move(o, ox + (ow / 2), oy + oh);
evas_object_move(o, ox + (ow / 2), oy);
evas_object_show(o);
}

@ -38,8 +38,6 @@
static Eina_Bool _show_kthreads = EINA_FALSE;
#define DO_WE_REALLY_CARE 0
void
proc_info_kthreads_show_set(Eina_Bool enabled)
{
@ -664,7 +662,6 @@ _proc_thread_info(struct kinfo_proc *kp, Eina_Bool is_thread)
p->cpu_time = (usage->ru_utime.tv_sec * 1000000) + usage->ru_utime.tv_usec +
(usage->ru_stime.tv_sec * 1000000) + usage->ru_stime.tv_usec;
// XXX: See kern.sched.idlespins
p->cpu_time /= 10000;
p->state = _process_state_name(kp->ki_stat);
p->mem_virt = kp->ki_size;

Loading…
Cancel
Save