X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontainer.cpp;h=a46492d4ea3a1b7bb5e464952d7db846db4633c8;hb=75a16eae9eb2714f8112d46fa5b8f7908b6d2487;hp=a755644bab6283bf3b6f7eb575befba32a3003d6;hpb=8a0058b5b90bb7e9eacf1646142f4d73b426fd66;p=libs%2Fgltk.git diff --git a/source/container.cpp b/source/container.cpp index a755644..a46492d 100644 --- a/source/container.cpp +++ b/source/container.cpp @@ -67,7 +67,9 @@ Widget *Container::get_descendant_at(int x, int y) if(Container *cont=dynamic_cast(wdg)) { const Geometry &cgeom=wdg->get_geometry(); - return cont->get_descendant_at(x-cgeom.x, y-cgeom.y); + Widget *wdg2=cont->get_descendant_at(x-cgeom.x, y-cgeom.y); + if(wdg2) + return wdg2; } return wdg; }