{
if(pointer_grab>0)
{
- const Geometry &cgeom=pointer_focus->get_geometry();
- pointer_focus->button_release(x-cgeom.x, y-cgeom.y, btn);
+ Widget *wdg=pointer_focus;
if(btn==pointer_grab)
set_pointer_focus(get_child_at(x, y), 0);
+
+ const Geometry &cgeom=wdg->get_geometry();
+ wdg->button_release(x-cgeom.x, y-cgeom.y, btn);
}
else if(geom.is_inside_relative(x, y))
{
public:
sigc::signal<void, bool> signal_toggled;
- Toggle(const Resources &);
+ Toggle(const Resources &, const std::string & =std::string());
void set_text(const std::string &);
void set_exclusive(bool);