GNOME Bugzilla – Bug 86330
Focus doesn't move to clicked panel object
Last modified: 2015-03-24 13:00:31 UTC
When you click on a panel object with either mouse button, the panel's focus ought to move to that object. Currently, if the object doesn't normally respond to single clicks (e.g. stock ticker, weather applet), the focus indicator remains on whichever panel object you last gave focus to.
Created attachment 9592 [details] [review] Patch to fix problem
Padraig: could you redo this to cache whether the attribute has a focusable child ? Maybe invalidating this when the hierarchy under us changes ? Can this be done ? Just don't want to have to traverse the hierarchy under us every button press.
Created attachment 9853 [details] [review] Reworked patch
I have attached a reworked patch. I have not fogured out how to test the situation where the hierarchy is changed.
Created attachment 9878 [details] [review] Correction to initialization of priv->focusable_child in previous patch
Looks fine Padraig. Please commit and close the bug.