Instead of polling all the time, wouldn't it be much more efficient to
have something like this?

 - embed the notification bubble window in a larger transparent XWindow which 
provides an invisible frame in which the fading happens
 - subscribe to focus in/out events (GDK_ENTER_NOTIFY) in both windows, and to 
GDK_MOTION_NOTIFY in the frame

Then nothing at all would happen if the mouse pointer is outside the
frame; while it's inside, you can do the dynamic fading according to the
mouse pointer positions, and if the pointer is inside the bubble window
you just fade it out all the way. None of this requires any polling.

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

Title:
  notify-osd busy polling consumes CPU and drains battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/notify-osd/+bug/645130/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to