mirror of https://github.com/GNOME/gimp.git
app: in GimpToolWidgetGroup, calculate hover widget at button press
In gimp_tool_widget_group_button_press(), explicitly call gimp_tool_widget_group_hover() before forwarding the event to the group's hover widget, so that the hover widget gets recalculated. If a widget is added to the group as a result of a button-press event, this guarantees that it gets considered as a target for the same event.
This commit is contained in:
parent
20a6a3583b
commit
5b217b3ad4
|
@ -227,6 +227,8 @@ gimp_tool_widget_group_button_press (GimpToolWidget *widget,
|
|||
GimpToolWidgetGroup *group = GIMP_TOOL_WIDGET_GROUP (widget);
|
||||
GimpToolWidgetGroupPrivate *priv = group->priv;
|
||||
|
||||
gimp_tool_widget_group_hover (widget, coords, state, TRUE);
|
||||
|
||||
if (priv->focus_widget != priv->hover_widget)
|
||||
{
|
||||
if (priv->hover_widget)
|
||||
|
|
Loading…
Reference in New Issue