You are right it is related to the theme.

The call of the GTK functions: gtk_widget_get_style_context,
gtk_style_context_get_background_color, tk_style_context_get_color are
emitting a draw signals to psensor when the widget does not have the
focus.

BTW, by caching the retrieval of fg/bg colors when drawing the psensor
curves, I can easily fix the CPU overuse in the Psensor code. I verified
than it works, there is no more CPU overuse when the focus is lost.

I will try to commit a fix in a PPA asap.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1582930

Title:
  psensor CPU usage jumps when graph window loses focus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/psensor/+bug/1582930/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to