]> git.tdb.fi Git - libs/gltk.git/commit
Only focus widgets if the container is focused
authorMikko Rasa <tdb@tdb.fi>
Sun, 8 Sep 2019 15:28:21 +0000 (18:28 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Sep 2019 15:28:21 +0000 (18:28 +0300)
commitf83d032c4b3d7ac694b3c8481e2086145245c0ef
tree66cf5e3c2692f3df1036fd9266d3a1db539b5d61
parentd309eb8633be1d9f08d1e9cd9930d68d8b169367
Only focus widgets if the container is focused

This prevents issues where a widget could be focused before it's added
to a rooted hierarchy, presenting inconsistent focus state.
source/container.cpp
source/root.cpp