- set_pointer_focus(wdg);
- if(wdg->is_focusable())
- set_input_focus(wdg);
- }
- if(click_focus)
- {
- const Geometry &cgeom = click_focus->get_geometry();
- click_focus->button_press(x-cgeom.x, y-cgeom.y, btn);
- }
- else
- {
- if(Widget *wdg = get_child_at(x, y))
- {
- click_focus = wdg;
- click_button = btn;
-
- const Geometry &cgeom = wdg->get_geometry();
- wdg->button_press(x-cgeom.x, y-cgeom.y, btn);
- }
+ set_pointer_focus(child);
+ if(child->is_focusable())
+ set_input_focus(child);
+
+ click_focus = child;
+ click_button = btn;