]> git.tdb.fi Git - libs/gltk.git/commitdiff
Pass List::focus_in to base class
authorMikko Rasa <tdb@tdb.fi>
Fri, 2 Sep 2016 22:07:33 +0000 (01:07 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 2 Sep 2016 22:07:33 +0000 (01:07 +0300)
It sets the FOCUS flag in state, which is then checked to determine
whether to focus items.

source/list.cpp

index 5a9f749fd0363b974ee1bfab98c37f37264a4354..a9cbcc1c5f02af4080ca895f18525dfcea61af1e 100644 (file)
@@ -314,6 +314,7 @@ void List::touch_motion(int, int y, unsigned finger)
 
 void List::focus_in()
 {
+       Container::focus_in();
        if(focus_index>=0 && items[focus_index]->is_visible())
                set_input_focus(items[focus_index]);
        else