X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpanel.cpp;h=a4b27699f693c71ff7f01a62b939ce60377d96d3;hb=9b29612d1cde85fee9b3f011e86a5cabe5dbcce3;hp=4d0d5d1359ef71cb0ea770c43bb6011daa839ad5;hpb=f34c8d617cbe8ae426e7a1e280dfa0aaf5d11a6d;p=libs%2Fgltk.git diff --git a/source/panel.cpp b/source/panel.cpp index 4d0d5d1..a4b2769 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -50,6 +50,11 @@ void Panel::remove(Widget &wdg) ChildSeq::iterator i=find(children.begin(), children.end(), &wdg); if(i!=children.end()) { + if(&wdg==pointer_focus) + set_pointer_focus(0, 0); + if(&wdg==input_focus) + set_input_focus(0); + set_parent(wdg, 0); children.erase(i); }