~desrt/indicator-appmenu/hud-rewrite-wip

Viewing all changes in revision 237.

  • Committer: Ryan Lortie
  • Date: 2012-03-16 15:25:20 UTC
  • Revision ID: desrt@desrt.ca-20120316152520-ri2hfm0g3irco52l
hud-service: delay dropping of query by 1 second

Unity sends a 'CloseQuery' followed immediately by a 'StartQuery' on
each keystroke in the search field.  This results in a bunch of extra
dbusmenu messages being sent as the use count drops briefly to 0 only to
go immediately back to 1.

We can prevent that by delaying the destruction of the query.

This decreases the number of dbus messages resulting from a short search
by a factor of about 4 (on a number that measures in the 100s).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: