GNOME Bugzilla – Bug 355223
stickynotes wakes up 10 times per second
Last modified: 2006-09-21 18:06:52 UTC
to manually check for clicks on the desktop window; this can be done in a much better way.
Created attachment 72484 [details] [review] a patch
please kill install_check_click_on_desktop if applicable, add changelog, commit. thanks for the patch :)
by which i mean applet_check_click_on_desktop_cb, of course.
2006-09-21 Matthias Clasen <mclasen@redhat.com> Don't install a 10Hz timer to poke at the X event queue. Instead use an event filter. (#355223) * stickynotes/stickynotes_applet.c (stickynotes_applet_init): Install the event filter instead of the timeout. * stickynotes/stickynotes_applet_callbacks.c (applet_check_click_on_desktop_cb): Removed (desktop_window_event_filter): The event filter. (install_check_click_on_desktop): Function to install the event filter. * stickynotes/stickynotes_applet_callbacks.h: Remove applet_check_click_on_desktop_cb here too.